/// <summary>
/// Create a polygon symbol using the ConstructGradientFill method. Constructs a gradient fill using the specified color ramp. <br/>
/// ![PolygonSymbolColorRamp](http://Esri.github.io/arcgis-pro-sdk/images/Symbology/PolygonSymbolColorRamp.png)
/// </summary>
/// <returns></returns>
public static Task<CIMPolygonSymbol> CreateGradientColorRampPolygonAsync()
{
return QueuedTask.Run<CIMPolygonSymbol>(() =>
{
//outine
CIMStroke outline = SymbolFactory.Instance.ConstructStroke(CIMColor.CreateRGBColor(49, 49, 49), 2.0, SimpleLineStyle.Solid);
//gradient fill using a color ramp
var gradientFill = SymbolFactory.Instance.ConstructGradientFill(GetColorRamp(), GradientFillMethod.Linear);
List<CIMSymbolLayer> symbolLayers = new List<CIMSymbolLayer>
{
outline,
gradientFill
};
return new CIMPolygonSymbol() { SymbolLayers = symbolLayers.ToArray() };
});
}