ArcGIS Pro 2.6 API Reference Guide
ConstructLineSymbol(CIMStroke) Method
Example 

ArcGIS.Desktop.Mapping Namespace > SymbolFactory Class > ConstructLineSymbol Method : ConstructLineSymbol(CIMStroke) Method
ArcGIS.Core.CIM.CIMStroke
Constructs a line symbol from a stroke.
Syntax
public CIMLineSymbol ConstructLineSymbol( 
   CIMStroke stroke
)
Public Overloads Function ConstructLineSymbol( _
   ByVal stroke As CIMStroke _
) As CIMLineSymbol

Parameters

stroke
ArcGIS.Core.CIM.CIMStroke

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, Windows 7

See Also

Reference

SymbolFactory Class
SymbolFactory Members
Overload List