/// <summary>
/// Create a polygon symbol using the ConstructHatchFill method . <br/>
/// 
/// </summary>
{
CIMStroke lineStroke = SymbolFactory.Instance.ConstructStroke(CIMColor.CreateRGBColor(51, 51, 51, 60), 4, SimpleLineStyle.Solid);
//gradient
var hatchFill = SymbolFactory.Instance.ConstructHatchFill(lineStroke, 45, 6, 0);
List<CIMSymbolLayer> symbolLayers = new()
{
hatchFill
};
//This is the polygon symbol with a diagonal cross hatch fill
CIMPolygonSymbol crossHatchPolygonSymbol = new CIMPolygonSymbol() { SymbolLayers = symbolLayers.ToArray() };
//To apply the symbol to a polygon feature layer
//var renderer = theLayer.GetRenderer() as CIMSimpleRenderer;
//renderer.Symbol = crossHatchPolygonSymbol.MakeSymbolReference();
//theLayer.SetRenderer(renderer);
}