IColorRampShade Interface
Provides the base requirements for a shade in a color ramp.
public interface IColorRampShade
Properties
Brightness
Gets the shade's brightness, in the range 0
to 1
.
Color
Gets the shade's color value.
ContrastName
Gets the shade's contrast name relative to the core theme intent (dark/light), if it has a known name.
string ContrastName { get; }
Property Value
- string:
The shade's contrast name relative to the core theme intent (dark/light), if it has a known name.
ForegroundColor
Gets the shade's foreground color value.
IsLight
Gets whether this shade is a light color.
Name
Gets the shade's name, if it has a known name.
Number
Gets the shade's number (0..1000) within its parent color ramp.
Ramp
Gets the parent IColorRamp of the shade.
Methods
GetForegroundColor(double)
Returns the foreground color for the Color, given a specified contrast percentage.