IColorRampShade Interface
Provides the base requirements for a shade in a color ramp.
public interface IColorRampShade
Properties
Brightness
The shade's brightness, in the range 0 to 1.
Color
The shade's color value.
ContrastName
The shade's contrast name relative to the core theme intent (dark/light), if it has a known name.
ForegroundColor
The shade's foreground color value.
IsLight
Indicates whether this shade is a light color.
Name
The shade's name, if it has a known name.
Number
The shade's number (0..1000) within its parent color ramp.
Ramp
The parent IColorRamp of the shade.
Methods
GetForegroundColor(double)
Returns the foreground color for the Color, given a specified contrast percentage.
Color GetForegroundColor(double contrastPercentage)
| Parameter | Type | Description |
|---|---|---|
| contrastPercentage | double | A contrast percentage. Valid values are |