ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SymbolFactory Class / ConstructLineSymbol Method / ConstructLineSymbol(CIMColor,Double,SimpleLineStyle) Method
ArcGIS.Core.CIM.CIMColor
The width of line symbol to construct.
SimpleLineStyle
Example

In This Topic
    ConstructLineSymbol(CIMColor,Double,SimpleLineStyle) Method
    In This Topic
    Constructs a line symbol of specific color, width and style.
    Syntax
    Public Overloads Function ConstructLineSymbol( _
       ByVal color As CIMColor, _
       ByVal width As Double, _
       ByVal lineStyle As SimpleLineStyle _
    ) As CIMLineSymbol

    Parameters

    color
    ArcGIS.Core.CIM.CIMColor
    width
    The width of line symbol to construct.
    lineStyle
    SimpleLineStyle

    Return Value

    Example
    How to construct a line symbol of specific color, size and line style
    CIMLineSymbol lineSymbol = SymbolFactory.Instance.ConstructLineSymbol(ColorFactory.Instance.BlueRGB, 4.0, SimpleLineStyle.Solid);
    
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also