ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SymbolFactory Class / ConstructLineSymbol Method / ConstructLineSymbol(CIMStroke) Method
ArcGIS.Core.CIM.CIMStroke
Example

In This Topic
    ConstructLineSymbol(CIMStroke) Method
    In This Topic
    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
    How to construct a line symbol from a stroke
    CIMStroke stroke = SymbolFactory.Instance.ConstructStroke(ColorFactory.Instance.BlackRGB, 2.0);
    CIMLineSymbol lineSymbolFromStroke = SymbolFactory.Instance.ConstructLineSymbol(stroke);
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also