ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SymbolFactory Class / ConstructMarker Method / ConstructMarker(CIMColor,Double,Simple3DMarkerStyle) Method
ArcGIS.Core.CIM.CIMColor
The size of the marker to construct.
Simple3DMarkerStyle
Example

In This Topic
    ConstructMarker(CIMColor,Double,Simple3DMarkerStyle) Method
    In This Topic
    Constructs a 3D marker of the specified color, size and 3D marker style. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Overloads Function ConstructMarker( _
       ByVal color As CIMColor, _
       ByVal size As Double, _
       ByVal markerStyle As Simple3DMarkerStyle _
    ) As CIMMarker

    Parameters

    color
    ArcGIS.Core.CIM.CIMColor
    size
    The size of the marker to construct.
    markerStyle
    Simple3DMarkerStyle

    Return Value

    Exceptions
    ExceptionDescription
    This method must be called within the lambda passed to QueuedTask.Run
    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.2 or higher.
    See Also