ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SymbolFactory Class / ConstructPolygonSymbolWithPenInkCrossHatch Method
ArcGIS.Core.CIM.CIMColor
A boolean indicating if border strokes are to be included in the symbol.
Example

In This Topic
    ConstructPolygonSymbolWithPenInkCrossHatch Method (SymbolFactory)
    In This Topic
    Constructs a polygon symbol in the specified color representing a pen and ink cross hatch effect. See %Pen and Ink styles:https://www.esri.com/arcgis-blog/products/arcgis-pro/mapping/please-steal-this-pen-and-ink-style%
    Syntax
    public CIMPolygonSymbol ConstructPolygonSymbolWithPenInkCrossHatch( 
       CIMColor color,
       bool includeBorder
    )
    Public Function ConstructPolygonSymbolWithPenInkCrossHatch( _
       ByVal color As CIMColor, _
       ByVal includeBorder As Boolean _
    ) As CIMPolygonSymbol

    Parameters

    color
    ArcGIS.Core.CIM.CIMColor
    includeBorder
    A boolean indicating if border strokes are to be included in the symbol.

    Return Value

    Example
    Snippet Pen and Ink: Cross Hatch
    /// <summary>
    /// Constructs a polygon symbol in the specified color representing a pen and ink cross hatch effect. See https://www.esri.com/arcgis-blog/products/arcgis-pro/mapping/please-steal-this-pen-and-ink-style/
    /// ![polygonPNHatch.png](http://Esri.github.io/arcgis-pro-sdk/images/Symbology/polygonPNHatch.png)
    /// </summary>
    /// <returns></returns>
    private static Task<CIMPolygonSymbol> CreatePenInkCrossHatchFillPolygonAsync()
    {
      return QueuedTask.Run<CIMPolygonSymbol>(() =>
      {
        //Cross Hatch pen and ink
        var penkInkCrossHatch = SymbolFactory.Instance.ConstructPolygonSymbolWithPenInkCrossHatch(CIMColor.CreateRGBColor(168, 49, 22), true);
        return penkInkCrossHatch;
      });
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also