Class CIMGradientFill
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
ColorRamp
Gets or sets the color scheme that is applied to the fill.
public CIMColorRamp ColorRamp { get; set; }
Property Value
GradientMethod
Gets or sets a value which specifies how the gradient is applied within the fill.
public GradientFillMethod GradientMethod { get; set; }
Property Value
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
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
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
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 CIMGradientFill with a specified state from a JSON encoding.
public static CIMGradientFill FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMGradientFill state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMGradientFill and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.