StyleColor class

Defines the StyleColor Class.This class is only available in O15. When the object is serialized out as xml, its qualified name is cs:styleClr.

Inheritance hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office15.Drawing.ChartStyle.StyleColor

Namespace:  DocumentFormat.OpenXml.Office15.Drawing.ChartStyle
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(GreenOffset))> _
<ChildElementInfoAttribute(GetType(Tint))> _
<ChildElementInfoAttribute(GetType(Shade))> _
<ChildElementInfoAttribute(GetType(Complement))> _
<ChildElementInfoAttribute(GetType(Inverse))> _
<ChildElementInfoAttribute(GetType(Gray))> _
<ChildElementInfoAttribute(GetType(Alpha))> _
<ChildElementInfoAttribute(GetType(AlphaOffset))> _
<ChildElementInfoAttribute(GetType(AlphaModulation))> _
<ChildElementInfoAttribute(GetType(Hue))> _
<ChildElementInfoAttribute(GetType(HueOffset))> _
<ChildElementInfoAttribute(GetType(HueModulation))> _
<ChildElementInfoAttribute(GetType(Saturation))> _
<ChildElementInfoAttribute(GetType(SaturationOffset))> _
<ChildElementInfoAttribute(GetType(SaturationModulation))> _
<ChildElementInfoAttribute(GetType(Luminance))> _
<ChildElementInfoAttribute(GetType(LuminanceOffset))> _
<ChildElementInfoAttribute(GetType(LuminanceModulation))> _
<ChildElementInfoAttribute(GetType(Red))> _
<ChildElementInfoAttribute(GetType(RedOffset))> _
<ChildElementInfoAttribute(GetType(RedModulation))> _
<ChildElementInfoAttribute(GetType(Green))> _
<ChildElementInfoAttribute(GetType(GreenModulation))> _
<ChildElementInfoAttribute(GetType(Blue))> _
<ChildElementInfoAttribute(GetType(BlueOffset))> _
<ChildElementInfoAttribute(GetType(BlueModulation))> _
<ChildElementInfoAttribute(GetType(Gamma))> _
<ChildElementInfoAttribute(GetType(InverseGamma))> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office15)> _
Public Class StyleColor _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As StyleColor
[ChildElementInfoAttribute(typeof(GreenOffset))]
[ChildElementInfoAttribute(typeof(Tint))]
[ChildElementInfoAttribute(typeof(Shade))]
[ChildElementInfoAttribute(typeof(Complement))]
[ChildElementInfoAttribute(typeof(Inverse))]
[ChildElementInfoAttribute(typeof(Gray))]
[ChildElementInfoAttribute(typeof(Alpha))]
[ChildElementInfoAttribute(typeof(AlphaOffset))]
[ChildElementInfoAttribute(typeof(AlphaModulation))]
[ChildElementInfoAttribute(typeof(Hue))]
[ChildElementInfoAttribute(typeof(HueOffset))]
[ChildElementInfoAttribute(typeof(HueModulation))]
[ChildElementInfoAttribute(typeof(Saturation))]
[ChildElementInfoAttribute(typeof(SaturationOffset))]
[ChildElementInfoAttribute(typeof(SaturationModulation))]
[ChildElementInfoAttribute(typeof(Luminance))]
[ChildElementInfoAttribute(typeof(LuminanceOffset))]
[ChildElementInfoAttribute(typeof(LuminanceModulation))]
[ChildElementInfoAttribute(typeof(Red))]
[ChildElementInfoAttribute(typeof(RedOffset))]
[ChildElementInfoAttribute(typeof(RedModulation))]
[ChildElementInfoAttribute(typeof(Green))]
[ChildElementInfoAttribute(typeof(GreenModulation))]
[ChildElementInfoAttribute(typeof(Blue))]
[ChildElementInfoAttribute(typeof(BlueOffset))]
[ChildElementInfoAttribute(typeof(BlueModulation))]
[ChildElementInfoAttribute(typeof(Gamma))]
[ChildElementInfoAttribute(typeof(InverseGamma))]
[OfficeAvailabilityAttribute(FileFormatVersions.Office15)]
public class StyleColor : OpenXmlCompositeElement

Remarks

2.5.95 CT_StyleColor

Target namespace: https://schemas.microsoft.com/office/drawing/2012/chartStyle

Referenced by: CT_StyleReference, CT_FontReference

The complex type specifies a color which is retrieved from CT_ColorStyle (section 2.5.94).

Child Elements:

tint: A CT_PositiveFixedPercentage ([ISO/IEC-29500-1] section A.4.1) element that specifies a lighter version of its input color. See ([ISO/IEC-29500-1] section 20.1.2.3.34).

shade: A CT_PositiveFixedPercentage ([ISO/IEC-29500-1] section A.4.1) element that specifies a darker version of its input color. See ([ISO/IEC-29500-1] section 20.1.2.3.31).

comp: A CT_ComplementTransform ([ISO/IEC-29500-1] section A.4.1) element that specifies the complement of its input color. See ([ISO/IEC-29500-1] section 20.1.2.3.7).

inv: A CT_InverseTransform ([ISO/IEC-29500-1] section A.4.1) element that specifies the inverse of its input color. See ([ISO/IEC-29500-1] section 20.1.2.3.17).

gray: A CT_GrayscaleTransform ([ISO/IEC-29500-1] section A.4.1) element that specifies a grayscale of its input color. See ([ISO/IEC-29500-1] section 20.1.2.3.9).

alpha: A CT_PositiveFixedPercentage ([ISO/IEC-29500-1] section A.4.1) element that specifies its input color with the specified opacity, but with its color unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.1).

alphaOff: A CT_FixedPercentage ([ISO/IEC-29500-1] section A.4.1) element that specifies a more or less opaque version of its input color. See ([ISO/IEC-29500-1] section 20.1.2.3.3).

alphaMod: A CT_PositivePercentage ([ISO/IEC-29500-1] section A.4.1) element that specifies a more or less opaque version of its input color. See ([ISO/IEC-29500-1] section 20.1.2.3.2).

hue: A CT_PositiveFixedAngle ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with the specified hue, but with its saturation and luminance unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.14).

hueOff: A CT_Angle ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its hue shifted, but with its saturation and luminance unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.16).

hueMod: A CT_PositivePercentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its hue modulated by the given percentage. See ([ISO/IEC-29500-1] section 20.1.2.3.15).

sat: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with the specified saturation, but with its hue and luminance unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.26).

satOff: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its saturation shifted, but with its hue and luminance unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.28).

satMod: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its saturation modulated by the given percentage. See ([ISO/IEC-29500-1] section 20.1.2.3.27).

lum: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with the specified luminance, but with its hue and saturation unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.19).

lumOff: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its luminance shifted, but with its hue and saturation unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.21).

lumMod: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its luminance modulated by the given percentage. See ([ISO/IEC-29500-1] section 20.1.2.3.20).

red: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with the specified red component, but with its green and blue components unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.23).

redOff: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its red component shifted, but with its green and blue components unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.25).

redMod: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its red component modulated by the given percentage. See ([ISO/IEC-29500-1] section 20.1.2.3.24).

green: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with the specified green component, but with its red and blue components unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.10).

greenOff: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its green component shifted, but with its red and blue components unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.12).

greenMod: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its green component modulated by the given percentage. See ([ISO/IEC-29500-1] section 20.1.2.3.11).

blue: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with the specified blue component, but with its red and green components unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.4).

blueOff: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its blue component shifted, but with its red and green components unchanged. See ([ISO/IEC-29500-1] section 20.1.2.3.6).

blueMod: A CT_Percentage ([ISO/IEC-29500-1] section A.4.1) element that specifies the input color with its blue component modulated by the given percentage. See ([ISO/IEC-29500-1] section 20.1.2.3.5).

gamma: A CT_GammaTransform ([ISO/IEC-29500-1] section A.4.1) element that specifies the sRGB gamma shift of its input color. See ([ISO/IEC-29500-1] section 20.1.2.3.8).

invGamma: A CT_InverseGammaTransform ([ISO/IEC-29500-1] section A.4.1) element that specifies the inverse sRGB gamma shift of its input color. See ([ISO/IEC-29500-1] section 20.1.2.3.18).

Attributes:

val: An ST_StyleColorVal attribute that specifies the value which is used to determine the index of the color in a CT_ColorStyle.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_StyleColor">

<xsd:sequence>

<xsd:group ref="a:EG_ColorTransform" minOccurs="0" maxOccurs="unbounded"/>

</xsd:sequence>

<xsd:attribute name="val" type="ST_StyleColorVal"/>

</xsd:complexType>

See section 5.16 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

StyleColor members

DocumentFormat.OpenXml.Office15.Drawing.ChartStyle namespace