Class ExcelDxfColor
- Namespace
- OfficeOpenXml.Style.Dxf
- Assembly
- EPPlus.dll
A color in a differential formatting record
public class ExcelDxfColor : DxfStyleBase
- Inheritance
-
ExcelDxfColor
- Inherited Members
Properties
Auto
Gets or sets the color to automatic
public bool? Auto { get; set; }
Property Value
- bool?
Color
Sets the color.
public Color? Color { get; set; }
Property Value
HasValue
If the object has any properties set
public override bool HasValue { get; }
Property Value
Index
Gets or sets an indexed color
public int? Index { get; set; }
Property Value
- int?
Theme
Gets or sets a theme color
public eThemeSchemeColor? Theme { get; set; }
Property Value
Tint
Gets or sets the Tint value for the color
public double? Tint { get; set; }
Property Value
Methods
Clear()
Clears all properties
public override void Clear()
SetAuto()
Set the color to automatic
public void SetAuto()
SetColor(eThemeSchemeColor)
Set the color of the drawing based on an eThemeSchemeColor color. This method will remove any previous Color, IndexedColor or Automatic color used.
public void SetColor(eThemeSchemeColor color)
Parameters
color
eThemeSchemeColorThe color
SetColor(ExcelIndexedColor)
Set the color of the drawing based on an ExcelIndexedColor color. This method will remove any previous Color, ThemeSchemeColor or Automatic color used.
public void SetColor(ExcelIndexedColor color)
Parameters
color
ExcelIndexedColorThe 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.
public void SetColor(Color color)
Parameters
color
ColorThe color
SetColor(int, int, int, int)
Set the color of the object
public void SetColor(int alpha, int red, int green, int blue)