The XColor type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Equals |
Determines whether the specified object is a Color structure and is equivalent to this
Color structure.
(Overrides ValueTypeEquals(Object).) | |
| FromArgb(Color) |
Creates an XColor structure from the specified System.Drawing.Color.
| |
| FromArgb(Int32) |
Creates an XColor structure from a 32-bit ARGB value.
| |
| FromArgb(UInt32) |
Creates an XColor structure from a 32-bit ARGB value.
| |
| FromArgb(Int32, XColor) |
Creates an XColor structure from the specified alpha value and color.
| |
| FromArgb(Int32, Color) |
Creates an XColor structure from the specified alpha value and color.
| |
| FromArgb(Int32, Int32, Int32) |
Creates an XColor structure from the specified 8-bit color values (red, green, and blue).
The alpha value is implicitly 255 (fully opaque).
| |
| FromArgb(Int32, Int32, Int32, Int32) |
Creates an XColor structure from the four ARGB component (alpha, red, green, and blue) values.
| |
| FromCmyk(Double, Double, Double, Double) |
Creates an XColor structure from the specified CMYK values.
| |
| FromCmyk(Double, Double, Double, Double, Double) |
Creates an XColor structure from the specified CMYK values.
| |
| FromGrayScale |
Creates an XColor structure from the specified gray value.
| |
| FromKnownColor(KnownColor) |
Creates an XColor from the specified pre-defined color.
| |
| FromKnownColor(XKnownColor) |
Creates an XColor from the specified pre-defined color.
| |
| FromName |
Creates an XColor from the specified name of a pre-defined color.
| |
| GetBrightness |
Gets the hue-saturation-brightness (HSB) brightness value for this color.
| |
| GetHashCode |
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
| GetHue |
Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this color.
| |
| GetSaturation |
Gets the hue-saturation-brightness (HSB) saturation value for this color.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToGdiColor |
Creates a System.Drawing.Color object from this color.
| |
| ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
See Also