FontReference class
Defines the FontReference Class.This class is only available in Office2013. When the object is serialized out as xml, its qualified name is cs:fontRef.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.FontReference
Namespace: DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
2.5.94 CT_FontReference
Target namespace: http://schemas.microsoft.com/office/drawing/2012/chartStyle
Referenced by: CT_StyleEntry
A reference to the document's font scheme.<155> This element is identical to CT_FontReference ([ISO/IEC-29500-1] section A.4.1) but also allows for a CT_StyleColor (section 2.5.92) element and a modifier list.
Child Elements:
scrgbClr: A CT_ScRgbColor ([ISO/IEC-29500-1] section A.4.1) element that specifies a color using the red-green-blue (RGB) color model. See ([ISO/IEC-29500-1] section 20.1.2.3.30).
srgbClr: A CT_SRgbColor ([ISO/IEC-29500-1] section A.4.1) element that specifies a color using the RGB color model. See ([ISO/IEC-29500-1] section 20.1.2.3.32).
hslClr: A CT_HslColor ([ISO/IEC-29500-1] section A.4.1) element that specifies a color using the HSL color model. See ([ISO/IEC-29500-1] section 20.1.2.3.13).
sysClr: A CT_SystemColor ([ISO/IEC-29500-1] section A.4.1) element that specifies a color bound to predefined operating system elements. See ([ISO/IEC-29500-1] section 20.1.2.3.33).
schemeClr: A CT_SchemeColor ([ISO/IEC-29500-1] section A.4.1) element that specifies a color bound to a user's theme. See ([ISO/IEC-29500-1] section 20.1.2.3.29).
prstClr: A CT_PresetColor ([ISO/IEC-29500-1] section A.4.1) element that specifies a color which is bound to one of a predefined collection of colors. See ([ISO/IEC-29500-1] section 20.1.2.3.22).
styleClr: A CT_StyleColor element that specifies a color calculated from a CT_ColorStyle.
Attributes:
idx: An ST_FontCollectionIndex ([ISO/IEC-29500-1] section 20.1.10.25) attribute that specifies a font associated with the style.
mods: An ST_StyleReferenceModifierList attribute that specifies a list of modifiers for this reference.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_FontReference">
<xsd:sequence>
<xsd:group ref="a:EG_ColorChoice" minOccurs="0" maxOccurs="1"/>
<xsd:element name="styleClr" type="CT_StyleColor" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="idx" type="a:ST_FontCollectionIndex" use="required"/>
<xsd:attribute name="mods" type="ST_StyleReferenceModifierList" use="optional"/>
</xsd:complexType>
See section 5.15 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).