Class CIMGradientStroke

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

Represents a gradient stroke which draws linear geometry with a specified color scheme.

public class CIMGradientStroke : CIMStroke
Inheritance
CIMGradientStroke
Inherited Members

Constructors

CIMGradientStroke()

public CIMGradientStroke()

Properties

ColorRamp

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

public CIMColorRamp ColorRamp { get; set; }

Property Value

CIMColorRamp

GradientMethod

Gets or sets how the gradient is applied along the stroke.

public GradientStrokeMethod GradientMethod { get; set; }

Property Value

GradientStrokeMethod

GradientSize

Gets or sets 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 whether GradientSize is applied with an absolute distance or a relative percentage.

public SymbolUnits GradientSizeUnits { get; set; }

Property Value

SymbolUnits

GradientType

Gets or sets whether the gradient is applied with discrete or continuous intervals.

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 CIMGradientStroke with a specified state from a JSON encoding.

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

Parameters

json string

The JSON string containing the CIMGradientStroke state.

settings JsonDeserializationSettings

The JSON deserialization settings.

Returns

CIMGradientStroke

ToJson(JsonSerializationSettings)

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

public override string ToJson(JsonSerializationSettings settings = null)

Parameters

settings JsonSerializationSettings

The JSON serialization settings.

Returns

string