Class ColorFormat
Preferred name for DrawingColor.
Represents a color used for shapes, charts, and other drawing objects.
Maps to the OOXML CT_Color complex type.
Inherited Members
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public class ColorFormat : DrawingColor
Constructors
ColorFormat(byte, byte, byte)
Initializes a new color from RGB byte values.
Declaration
public ColorFormat(byte r, byte g, byte b)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | r | |
| byte | g | |
| byte | b |
ColorFormat(Color)
Initializes a new color from a Color.
Declaration
public ColorFormat(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | color |
ColorFormat(string)
Initializes a new color from a hex string (e.g. "FF0000").
Declaration
public ColorFormat(string hexColor)
Parameters
| Type | Name | Description |
|---|---|---|
| string | hexColor |