ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SymbolFactory Class / ConstructMarker Method / ConstructMarker(CIMStroke,Double,Polygon) Method
The marker outline
The size of the marker to construct
The outline shape of the marker
Example

In This Topic
    ConstructMarker(CIMStroke,Double,Polygon) Method
    In This Topic
    Constructs a marker of the stroke ("outline"), size, and shape.
    Syntax
    Public Overloads Function ConstructMarker( _
       ByVal outline As CIMStroke, _
       ByVal size As Double, _
       ByVal markerShape As Polygon _
    ) As CIMMarker
    public CIMMarker ConstructMarker( 
       CIMStroke outline,
       double size,
       Polygon markerShape
    )

    Parameters

    outline
    The marker outline
    size
    The size of the marker to construct
    markerShape
    The outline shape of the marker

    Return Value

    Remarks
    The specified stroke is used to create a polygon symbol which is used to depict the marker. The polygon symbol will be hollow - i.e. it has a null fill
    Example
    Modify a point symbol created from a character marker
    {
        //create marker from the Font, char index,size,color
        //Note: Needs QueuedTask to run
        var cimMarker = SymbolFactory.Instance.ConstructMarker(125, "Wingdings 3", "Regular", 6, ColorFactory.Instance.BlueRGB) as CIMCharacterMarker;
        var polygonMarker = cimMarker.Symbol;
        //modifying the polygon's outline and fill
        //This is the outline
        polygonMarker.SymbolLayers[0] = SymbolFactory.Instance.ConstructStroke(ColorFactory.Instance.GreenRGB, 2, SimpleLineStyle.Solid);
        //This is the fill
        polygonMarker.SymbolLayers[1] = SymbolFactory.Instance.ConstructSolidFill(ColorFactory.Instance.BlueRGB);
        //create a symbol from the marker 
        //Note this overload of ConstructPointSymbol does not need to be run within QueuedTask.Run.
        var pointSymbol = SymbolFactory.Instance.ConstructPointSymbol(cimMarker);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also