Class ExcelDrawingThemeColorManager¶
Namespace: OfficeOpenXml.Drawing.Style.Coloring
Assembly: EPPlus.dll
Manages colors in a theme
Inheritance¶
object ← ExcelDrawingThemeColorManager
Derived¶
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Fields¶
_colorNode¶
The node of the color object
Field Value¶
XmlNode
_initMethod¶
Init method
Field Value¶
_nameSpaceManager¶
Namespace manager
Field Value¶
XmlNamespaceManager
_path¶
The x-path
Field Value¶
_pathNode¶
The node of the supplied path
Field Value¶
XmlNode
_schemaNodeOrder¶
Order of the elements according to the xml schema
Field Value¶
string[]
_topNode¶
The top node
Field Value¶
XmlNode
Properties¶
ColorType¶
The type of color.
Each type has it's own property and set-method.
SetRgbColor(Color, bool)
SetRgbPercentageColor(double, double, double)
SetHslColor(double, double, double)
SetPresetColor(Color)
SetPresetColor(ePresetColor)
SetSystemColor(eSystemColor)
SetSchemeColor(eSchemeColor)
Property Value¶
HslColor¶
A hsl color. This property has a value when Type is set to Hsl
Property Value¶
PresetColor¶
A preset color. This property has a value when Type is set to Preset
Property Value¶
RgbColor¶
A rgb color. This property has a value when Type is set to Rgb
Property Value¶
RgbPercentageColor¶
A rgb precentage color. This property has a value when Type is set to RgbPercentage
Property Value¶
ExcelDrawingRgbPercentageColor
SystemColor¶
A system color. This property has a value when Type is set to System
Property Value¶
Transforms¶
Color transformations
Property Value¶
Methods¶
ResetColors(string)¶
Reset the color objects
Parameters¶
newNodeName string
The new color node name
SetHslColor(double, double, double)¶
Sets a hsl color
Parameters¶
hue double
The hue angle. From 0-360
saturation double
The saturation percentage. From 0-100
luminance double
The luminance percentage. From 0-100
SetPresetColor(Color)¶
Sets a preset color. Must be a named color. Can't be color.Empty.
Parameters¶
color Color
Color
SetPresetColor(ePresetColor)¶
Sets a preset color.
Parameters¶
presetColor ePresetColor
The color
SetRgbColor(Color, bool)¶
Sets a rgb color.
Parameters¶
color Color
The color
setAlpha bool
Apply the alpha part of the Color to the Transforms collection
SetRgbPercentageColor(double, double, double)¶
Sets a rgb precentage color
public void SetRgbPercentageColor(double redPercentage, double greenPercentage, double bluePercentage)
Parameters¶
redPercentage double
Red percentage
greenPercentage double
Green percentage
bluePercentage double
Bluepercentage
SetSystemColor(eSystemColor)¶
Sets a system color
Parameters¶
systemColor eSystemColor
The colors