ColorRamp Class
Represents a color ramp that contains multiple color shades.
public class ColorRamp
- Inheritance:
- object object
Constructors
ColorRamp(Hue)
Initializes an instance of the class with a Hue.
public ColorRamp(Hue hue)
| Parameter | Type | Description |
|---|---|---|
| hue | Hue | The Hue whose name will be the ramp name. |
ColorRamp(string, bool)
Initializes an instance of the class with a color family name.
public ColorRamp(string name, bool isNeutral)
| Parameter | Type | Description |
|---|---|---|
| name | string | The ramp name, which is often the color family name (e.g., |
| isNeutral | bool | Whether the color ramp is for neutral (e.g., grayscale) colors. |
Properties
IsNeutral
Whether the color ramp is for neutral (e.g., grayscale) colors.
public bool IsNeutral { get; }
Property Value
- bool:
trueif the color ramp is for neutral (e.g., grayscale) colors; otherwise,falseif the color ramp is for colorful saturated colors.
Name
The ramp name, which is often the color family name (e.g., "Blue") associated with the ramp.
Shades
The collection of shades in the color ramp.
Methods
ToString()
Returns the string representation of this object.
Fields
NeutralName
The default name for a color ramp consisting of neutral (e.g., grayscale) colors.
public const string NeutralName = "Neutral"
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()