Class CIMGradientStroke
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
GradientMethod
Gets or sets how the gradient is applied along the stroke.
public GradientStrokeMethod GradientMethod { get; set; }
Property Value
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
GradientSizeUnits
Gets or sets whether GradientSize is applied with an absolute distance or a relative percentage.
public SymbolUnits GradientSizeUnits { get; set; }
Property Value
GradientType
Gets or sets whether the gradient is applied with discrete or continuous intervals.
public GradientStrokeType GradientType { get; set; }
Property Value
Interval
Gets or sets how many bands draw when the GradientType is set to Discrete.
public int Interval { get; set; }
Property Value
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
jsonstringThe JSON string containing the CIMGradientStroke state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMGradientStroke and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.