ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SymbolFactory Class / ConstructMarker Method / ConstructMarker(Int32,String,String,Int32,CIMColor) Method
The index of the character from the font.
The font family name of the character marker to construct.
The font style name (Regular, Bold, Italic, etc.) of the character marker to construct.
The size of the marker to construct.
ArcGIS.Core.CIM.CIMColor
Example

In This Topic
    ConstructMarker(Int32,String,String,Int32,CIMColor) Method
    In This Topic
    Constructs a character marker.
    Syntax
    Public Overloads Function ConstructMarker( _
       ByVal characterIndex As Integer, _
       ByVal fontFamily As String, _
       ByVal fontStyle As String, _
       ByVal size As Integer, _
       ByVal color As CIMColor _
    ) As CIMMarker

    Parameters

    characterIndex
    The index of the character from the font.
    fontFamily
    The font family name of the character marker to construct.
    fontStyle
    The font style name (Regular, Bold, Italic, etc.) of the character marker to construct.
    size
    The size of the marker to construct.
    color
    ArcGIS.Core.CIM.CIMColor

    Return Value

    Example
    Modify a point symbol created from a character marker
    //create marker from the Font, char index,size,color
    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, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also