Class CIMGradientFill

Namespace
ESRI.ArcGIS.CIM
Assembly
ESRI.Server.CIM.dll

Represents a gradient fill which fills polygonal geometry with a specified color scheme.

public class CIMGradientFill : CIMFill
Inheritance
CIMGradientFill
Inherited Members

Constructors

CIMGradientFill()

public CIMGradientFill()

Properties

Angle

Gets or sets the angle of the gradient when the GradientMethod is set to Linear or Rectangular.

public double Angle { get; set; }

Property Value

double

ColorRamp

Gets or sets the color scheme that is applied to the fill.

public CIMColorRamp ColorRamp { get; set; }

Property Value

CIMColorRamp

GradientMethod

Gets or sets a value which specifies how the gradient is applied within the fill.

public GradientFillMethod GradientMethod { get; set; }

Property Value

GradientFillMethod

GradientSize

Gets or sets a value which determines how much of the feature is covered by the color scheme. This is either a percentage of the total area which the color scheme spans or the number of page units from the starting point at which the gradient displays.

public double GradientSize { get; set; }

Property Value

double

GradientSizeUnits

Gets or sets a value which specifies whether GradientSize is applied with an absolute distance or a relative percentage.

public SymbolUnits GradientSizeUnits { get; set; }

Property Value

SymbolUnits

GradientType

Gets or sets a value which specifies if the gradient is applied with discrete intervals or if it is continuous.

public GradientStrokeType GradientType { get; set; }

Property Value

GradientStrokeType

Interval

Gets or sets how many bands draw when the GradientType is set to Discrete.

public int Interval { get; set; }

Property Value

int

Methods

FromJson(string, JsonDeserializationSettings)

Reconstructs the CIMGradientFill with a specified state from a JSON encoding.

public static CIMGradientFill FromJson(string json, JsonDeserializationSettings settings = null)

Parameters

json string

The JSON string containing the CIMGradientFill state.

settings JsonDeserializationSettings

The JSON deserialization settings.

Returns

CIMGradientFill

ToJson(JsonSerializationSettings)

Creates a JSON encoding of the CIMGradientFill and its current state.

public override string ToJson(JsonSerializationSettings settings = null)

Parameters

settings JsonSerializationSettings

The JSON serialization settings.

Returns

string