TDrawingColor Structure
Represents a Color for a drawing or a theme. Different from TExcelColor, this structure is defined in terms of DrawingML, not SpreadsheetML.
Syntax
Namespace: FlexCel.Core
public struct TDrawingColor
Methods
Name | Description |
---|---|
GetColorTransform | Returns an array with all the color transforms in this object. |
CompareTo | Overloaded CompareTo(Object) CompareTo(TDrawingColor) |
GetHashCode | Returns the hashcode of the object. |
Equals | Returns true if both instances have the same color. |
FromPreset | Returns a color class with a specified preset color. |
FromSystem | Returns a color class with a specified system color. |
FromColor | Overloaded FromColor(TUIColor) FromColor(TExcelColor, IFlexCelPalette) |
FromRgb | Returns a color from its byte components. |
FromScRgb | Returns a color class with a specified scRGB color. |
FromTheme | Returns a color class with a specified themed color. |
FromHSL | Returns a color class with a specified HSL color. |
AddTransform | Returns the DrawingColor that results of applying the transform to the existing DrawingColor. |
ToExcelColor | Returns a color class with a specified color. |
ToColor | Returns the .NET Color specified by this structure. |
GetSystemColor | Returns the color associated with a simple color. |
IndexedSolidPalette | Returns the indexed colors from 0 to 7. Mostly for internal use. |
GetComponents | Returns R, G and B components of the color. If this is a theme or indexed color, it will be converted to RGB before getting the components. |
Operators
Name | Description |
---|---|
Equality | Returns true if both colors are equal. |
Inequality | Returns true if both colors do not have the same value. |
GreaterThan | Returns true if o1 is bigger than o2. |
LessThan | Returns true if o1 is less than o2. |
Implicit Conversion | Assigns a .NET color to this instance. |
Properties
Name | Description |
---|---|
ColorType | Identifies which kind of color is the one to apply in this structure. |
HSL | Returns the color when this structure has an HSL color, as a 0xHHSSLL integer. If you try to read the value of this property and ColorType is not the right kind, an Exception will be raised. |
RGB | Returns the color when this structure has an RGB color, as a 0xRRGGBB integer. If you try to read the value of this property and ColorType is not the right kind, an Exception will be raised. |
ScRGB | Returns the color when this structure has an scRGB color. If you try to read the value of this property and ColorType is not the right kind, an Exception will be raised. |
Preset | Returns the color when this structure has a Preset color. If you try to read the value of this property and ColorType is not the right kind, an Exception will be raised. |
System | Returns the color when this structure has a System color. If you try to read the value of this property and ColorType is not the right kind, an Exception will be raised. |
Theme | Returns the color when this structure has a Themed color. If you try to read the value of this property and ColorType is not the right kind, an Exception will be raised. |
Transparent | Returns the transparent color. |