Class ExcelColor¶
Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll
Color for cellstyling
Inheritance¶
object ← StyleBase ← ExcelColor
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Auto¶
Auto color
Property Value¶
Indexed¶
The indexed color number. A negative value means not set.
Property Value¶
Rgb¶
The RGB value
Property Value¶
Theme¶
The theme color
Property Value¶
Tint¶
The tint value
Property Value¶
Methods¶
LookupColor()¶
Return the RGB hex string for the Indexed or Tint property
Returns¶
The RGB color starting with a #FF (alpha)
LookupColor(ExcelColor)¶
Return the RGB value as a string for the color object that uses the Indexed or Tint property
Parameters¶
theColor ExcelColor
The color object
Returns¶
The RGB color starting with a #FF (alpha)
SetAuto()¶
Set the color to automatic
SetColor(Color)¶
Set the color of the object
Parameters¶
color Color
The color
SetColor(eThemeSchemeColor)¶
Set the color of the object
Parameters¶
color eThemeSchemeColor
The color
SetColor(ExcelIndexedColor)¶
Set the color of the object
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