ArcGIS Pro 2.7 API Reference Guide
ConstructStroke(CIMColor,Double) Method
Example 

ArcGIS.Desktop.Mapping Namespace > SymbolFactory Class > ConstructStroke Method : ConstructStroke(CIMColor,Double) Method
ArcGIS.Core.CIM.CIMColor
The width of stroke to construct.
Constructs a stroke of specific color and width.
Syntax
public CIMStroke ConstructStroke( 
   CIMColor color,
   double width
)
Public Overloads Function ConstructStroke( _
   ByVal color As CIMColor, _
   ByVal width As Double _
) As CIMStroke

Parameters

color
ArcGIS.Core.CIM.CIMColor
width
The width of stroke to construct.

Return Value

Example
CIMStroke stroke = SymbolFactory.Instance.ConstructStroke(ColorFactory.Instance.BlackRGB, 2.0);
CIMLineSymbol lineSymbolFromStroke = SymbolFactory.Instance.ConstructLineSymbol(stroke);
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

SymbolFactory Class
SymbolFactory Members
Overload List