ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SymbolFactory Class / ConstructSolidFill Method
ArcGIS.Core.CIM.CIMColor
Example

In This Topic
    ConstructSolidFill Method (SymbolFactory)
    In This Topic
    Constructs a solid fill of specific color.
    Syntax
    public CIMFill ConstructSolidFill( 
       CIMColor color
    )
    Public Function ConstructSolidFill( _
       ByVal color As CIMColor _
    ) As CIMFill

    Parameters

    color
    ArcGIS.Core.CIM.CIMColor

    Return Value

    Example
    Snippet Custom fill and outline
    /// <summary>
    /// Creates a point symbol with custom fill and outline          
    /// ![PointSymbolMarker](http://Esri.github.io/arcgis-pro-sdk/images/Symbology/point-fill-outline.png)
    /// </summary>
    /// <returns></returns>
    internal static Task<CIMPointSymbol> CreatePointSymbolAsync()
    {
      return QueuedTask.Run<CIMPointSymbol>(() =>
      {
        var circlePtSymbol = SymbolFactory.Instance.ConstructPointSymbol(ColorFactory.Instance.BlueRGB, 6, SimpleMarkerStyle.Circle);
        //Modifying this point symbol with the attributes we want.
        //getting the marker that is used to render the symbol
        var marker = circlePtSymbol.SymbolLayers[0] as CIMVectorMarker;
        //Getting the polygon symbol layers components in the marker
        var polySymbol = marker.MarkerGraphics[0].Symbol as CIMPolygonSymbol;
        //modifying the polygon's outline and width per requirements
        polySymbol.SymbolLayers[0] = SymbolFactory.Instance.ConstructStroke(ColorFactory.Instance.BlackRGB, 2, SimpleLineStyle.Solid); //This is the outline
        polySymbol.SymbolLayers[1] = SymbolFactory.Instance.ConstructSolidFill(ColorFactory.Instance.BlueRGB); //This is the fill
        return circlePtSymbol;
      });
    
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also