Class ExcelDxfColor¶
Namespace: OfficeOpenXml.Style.Dxf
Assembly: EPPlus.dll
A color in a differential formatting record
Inheritance¶
object ← DxfStyleBase ← ExcelDxfColor
Inherited Members¶
DxfStyleBase.Clear()
DxfStyleBase.HasValue
DxfStyleBase.SetValueColor(XmlHelper, string, ExcelDxfColor)
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Auto¶
Gets or sets the color to automatic
Property Value¶
bool?
Color¶
Sets the color.
Property Value¶
HasValue¶
If the object has any properties set
Property Value¶
Index¶
Gets or sets an indexed color
Property Value¶
int?
Theme¶
Gets or sets a theme color
Property Value¶
Tint¶
Gets or sets the Tint value for the color
Property Value¶
Methods¶
Clear()¶
Clears all properties
SetAuto()¶
Set the color to automatic
SetColor(Color)¶
Set the color of the drawing based on an RGB color. This method will remove any previous eThemeSchemeColor?text=ThemeSchemeColor, ExcelIndexedColor?text=IndexedColor or Automatic color used.
Parameters¶
color Color
The color
SetColor(eThemeSchemeColor)¶
Set the color of the drawing based on an eThemeSchemeColor color. This method will remove any previous Color, ExcelIndexedColor?text=IndexedColor or Automatic color used.
Parameters¶
color eThemeSchemeColor
The color
SetColor(ExcelIndexedColor)¶
Set the color of the drawing based on an ExcelIndexedColor color. This method will remove any previous Color?text=Color, eThemeSchemeColor?text=ThemeSchemeColor or Automatic color used.
Parameters¶
color ExcelIndexedColor
The color
SetColor(int, int, int, int)¶
Set the color of the object
Parameters¶
alpha int
Alpha component value
red int
Red component value
green int
Green component value
blue int
Blue component value