ArcGIS Pro 3.7 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 Function ConstructPolygonSymbolWithPenInkCrossHatch( _
       ByVal color As CIMColor, _
       ByVal includeBorder As Boolean _
    ) As CIMPolygonSymbol
    public CIMPolygonSymbol ConstructPolygonSymbolWithPenInkCrossHatch( 
       CIMColor color,
       bool includeBorder
    )

    Parameters

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

    Return Value

    Example
    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](https://ArcGIS.github.io/arcgis-pro-sdk/images/Symbology/polygonPNHatch.png)
    /// </summary>
    {
      //Note: Run withing QueuedTask
      //Cross Hatch pen and ink
      var penkInkCrossHatch = SymbolFactory.Instance.ConstructPolygonSymbolWithPenInkCrossHatch(CIMColor.CreateRGBColor(168, 49, 22), true);
      CIMPolygonSymbol penInkCrossHatch = penkInkCrossHatch;
      //To apply the symbol to a polygon feature layer
      //var renderer = theLayer.GetRenderer() as CIMSimpleRenderer;
      //renderer.Symbol = penInkCrossHatch.MakeSymbolReference();
      //theLayer.SetRenderer(renderer);
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also