Table of Contents

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
AddTransform Returns the DrawingColor that results of applying the transform to the existing DrawingColor.
CompareTo Overloaded
CompareTo(Object)
CompareTo(TDrawingColor)
Equals Returns true if both instances have the same color.
FromColor Overloaded
FromColor(TUIColor)
FromColor(TExcelColor, IFlexCelPalette)
FromHSL Returns a color class with a specified HSL color.
FromPreset Returns a color class with a specified preset color.
FromRgb Returns a color from its byte components.
FromScRgb Returns a color class with a specified scRGB color.
FromSystem Returns a color class with a specified system color.
FromTheme Returns a color class with a specified themed color.
GetColorTransform Returns an array with all the color transforms in this object.
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.
GetHashCode Returns the hashcode of the object.
GetSystemColor Returns the color associated with a simple color.
IndexedSolidPalette Returns the indexed colors from 0 to 7. Mostly for internal use.
ToColor Returns the .NET Color specified by this structure.
ToExcelColor Returns a color class with a specified color.

Operators

Name Description
Equality Returns true if both colors are equal.
GreaterThan Returns true if o1 is bigger than o2.
Implicit Conversion Assigns a .NET color to this instance.
Inequality Returns true if both colors do not have the same value.
LessThan Returns true if o1 is less than o2.

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.
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.
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.
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.