LineReference class

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

Inheritance hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office15.Drawing.ChartStyle.StyleReference
        DocumentFormat.OpenXml.Office15.Drawing.ChartStyle.LineReference

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

Syntax

'Declaration
<OfficeAvailabilityAttribute(FileFormatVersions.Office15)> _
Public Class LineReference _
    Inherits StyleReference
'Usage
Dim instance As LineReference
[OfficeAvailabilityAttribute(FileFormatVersions.Office15)]
public class LineReference : StyleReference

Remarks

2.5.96 CT_StyleReference

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

Referenced by: CT_StyleEntry

A reference to the document's theme style matrix. This element is identical to CT_StyleMatrixReference ([ISO/IEC-29500-1] section A.4.1) but also allows for a CT_StyleColor (section 2.5.95) 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_StyleMatrixColumnIndex ([ISO/IEC-29500-1] section 20.1.10.57) attribute that specifies the style matrix index of the style referred to.

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_StyleReference">

<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_StyleMatrixColumnIndex" use="required"/>

<xsd:attribute name="mods" type="ST_StyleReferenceModifierList" use="optional"/>

</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

LineReference members

DocumentFormat.OpenXml.Office15.Drawing.ChartStyle namespace