Class ExcelDxfColor
A color in a differential formatting record
Inherited Members
Namespace: OfficeOpenXml.Style.Dxf
Assembly: EPPlus.dll
Syntax
public class ExcelDxfColor : DxfStyleBase
Properties
Auto
Gets or sets the color to automatic
Declaration
public bool? Auto { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
Color
Sets the color.
Declaration
public Color? Color { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Drawing.Color> |
HasValue
If the object has any properties set
Declaration
public override bool HasValue { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Index
Gets or sets an indexed color
Declaration
public int? Index { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Theme
Gets or sets a theme color
Declaration
public eThemeSchemeColor? Theme { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<eThemeSchemeColor> |
Tint
Gets or sets the Tint value for the color
Declaration
public double? Tint { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Double> |
Methods
Clear()
Clears all properties
Declaration
public override void Clear()
Overrides
SetAuto()
Set the color to automatic
Declaration
public void SetAuto()
SetColor(eThemeSchemeColor)
Set the color of the drawing based on an eThemeSchemeColor color. This method will remove any previous System.Drawing.Color, IndexedColor or Automatic color used.
Declaration
public void SetColor(eThemeSchemeColor color)
Parameters
| Type | Name | Description |
|---|---|---|
| eThemeSchemeColor | color | The color |
SetColor(ExcelIndexedColor)
Set the color of the drawing based on an ExcelIndexedColor color. This method will remove any previous System.Drawing.Color, ThemeSchemeColor or Automatic color used.
Declaration
public void SetColor(ExcelIndexedColor color)
Parameters
| Type | Name | Description |
|---|---|---|
| ExcelIndexedColor | color | The color |
SetColor(Color)
Set the color of the drawing based on an RGB color. This method will remove any previous ThemeSchemeColor, IndexedColor or Automatic color used.
Declaration
public void SetColor(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Color | color | The color |
SetColor(Int32, Int32, Int32, Int32)
Set the color of the object
Declaration
public void SetColor(int alpha, int red, int green, int blue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | alpha | Alpha component value |
| System.Int32 | red | Red component value |
| System.Int32 | green | Green component value |
| System.Int32 | blue | Blue component value |