Class CIMColorSubstitution
Represents color substitution, an ordered list of color substitutes.
public class CIMColorSubstitution : CIMObject
- Inheritance
-
CIMColorSubstitution
- Inherited Members
Constructors
CIMColorSubstitution()
public CIMColorSubstitution()
Properties
NewColor
Gets or sets the new color that will replace the old color.
public CIMColor NewColor { get; set; }
Property Value
OldColor
Gets or sets the old color (the color that will be substituted).
public CIMColor OldColor { get; set; }
Property Value
Methods
FromJson(string, JsonDeserializationSettings)
Reconstructs the CIMColorSubstitution with a specified state from a JSON encoding.
public static CIMColorSubstitution FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMColorSubstitution state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMColorSubstitution and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.