ConstructPolygonSymbolWithPenInkCrossHatch Method (SymbolFactory)
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%
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/
/// 
/// </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;
});
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.1 or higher.