Class CIMFixedColorRamp
Represents a color scheme composed of discrete colors.
public class CIMFixedColorRamp : CIMColorRamp
- Inheritance
-
CIMFixedColorRamp
- Inherited Members
Remarks
A color scheme composed of an ordered list of discrete colors.
Constructors
CIMFixedColorRamp()
public CIMFixedColorRamp()
Properties
Arrangement
Gets or sets the arrangement type.
public FixedColorRampArrangementType Arrangement { get; set; }
Property Value
Colors
Gets or sets the ordered list of colors in the color scheme.
public CIMColor[] Colors { get; set; }
Property Value
- CIMColor[]
Methods
FromJson(string, JsonDeserializationSettings)
Reconstructs the CIMFixedColorRamp with a specified state from a JSON encoding.
public static CIMFixedColorRamp FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMFixedColorRamp state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMFixedColorRamp and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.