ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SymbolFactory Class / ConstructPolygonSymbol Method / ConstructPolygonSymbol(CIMColor,SimpleFillStyle) Method
ArcGIS.Core.CIM.CIMColor
SimpleFillStyle
Example

In This Topic
    ConstructPolygonSymbol(CIMColor,SimpleFillStyle) Method
    In This Topic
    Constructs a polygon symbol of specific color and style.
    Syntax
    public CIMPolygonSymbol ConstructPolygonSymbol( 
       CIMColor color,
       SimpleFillStyle fillStyle
    )
    Public Overloads Function ConstructPolygonSymbol( _
       ByVal color As CIMColor, _
       ByVal fillStyle As SimpleFillStyle _
    ) As CIMPolygonSymbol

    Parameters

    color
    ArcGIS.Core.CIM.CIMColor
    fillStyle
    SimpleFillStyle

    Return Value

    Example
    How to construct a polygon symbol of specific color and fill style
    CIMPolygonSymbol polygonSymbol = SymbolFactory.Instance.ConstructPolygonSymbol(ColorFactory.Instance.RedRGB, SimpleFillStyle.Solid);
    
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also