Timeline class
Defines the Timeline Class.This class is only available in Office2013. When the object is serialized out as xml, its qualified name is x15:timeline.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office2013.Excel.Timeline
Namespace: DocumentFormat.OpenXml.Office2013.Excel
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
2.6.111 CT_Timeline
Target namespace: http://schemas.microsoft.com/office/spreadsheetml/2010/11/main
Referenced by: CT_Timelines
The CT_Timeline complex type specifies a Timeline view (section 2.3.5.2) in this worksheet.<87>
Child Elements:
extLst: A CT_ExtensionList element, as specified in [ISO/IEC-29500-4] section A.2, that specifies future extensibility for this element.
Attributes:
name: An ST_Xstring attribute, as specified in [ISO/IEC-29500-1] section 22.9.2.19, that specifies the name of the Timeline view. This element MUST be a unique case-insensitive name within the scope of this workbook. The length of this attribute MUST be greater than or equal to one character and MUST be less than or equal to 32767 characters.
cache: An ST_Xstring attribute that specifies the name of the Timeline cache (section 2.3.5.1) that this Timeline view is associated with. There MUST be a CT_TimelineCacheDefinition element (section 2.6.112) within this workbook with the name attribute equal to the value of this attribute.
caption: An ST_Xstring attribute that specifies the caption of the Timeline view. If this string exists, the length MUST be greater than or equal to one character.
showHeader: A Boolean attribute, as specified in [XMLSCHEMA2] section 3.2.2, that specifies whether the header is displayed.
showSelectionLabel: A Boolean ([XMLSCHEMA2] section 3.2.2) attribute that specifies whether the selection label is displayed.
showTimeLevel: A Boolean ([XMLSCHEMA2] section 3.2.2) attribute that specifies whether the time level is displayed.
showHorizontalScrollbar: A Boolean ([XMLSCHEMA2] section 3.2.2) attribute that specifies whether the horizontal scrollbar is displayed.
level: An unsignedInt attribute, as specified in [XMLSCHEMA2] section 3.3.22, that specifies the current time level of the Timeline (section 2.3.5). This element MUST be a value from the following table:
Value | Meaning |
0 | Year |
1 | Quarter |
2 | Month |
3 | Day |
selectionLevel: An unsignedInt attribute that specifies the time level at which the current selection was made for the Timeline. This element MUST be a value from the following table:
Value | Meaning |
0 | Year |
1 | Quarter |
2 | Month |
3 | Day |
scrollPosition: A dateTime attribute ([XMLSCHEMA2] section 3.2.7) that specifies the start date of the timespan scrolling position of the Timeline.
style: An ST_Xstring attribute ([ISO/IEC-29500-1] section 22.9.2.19) that specifies the Timeline style (section 2.3.5.4) of the Timeline view. If this field (1) exists, this string MUST match the name attribute of a CT_TimelineStyle element (section 2.6.107) within this workbook or MUST be equal to one of the built-in Timeline style names:
Built-in Timeline style names |
TimelineStyleLight1 |
TimelineStyleLight2 |
TimelineStyleLight3 |
TimelineStyleLight4 |
TimelineStyleLight5 |
TimelineStyleLight6 |
TimelineStyleDark1 |
TimelineStyleDark2 |
TimelineStyleDark3 |
TimelineStyleDark4 |
TimelineStyleDark5 |
TimelineStyleDark6 |
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_Timeline">
<xsd:sequence>
<xsd:element name="extLst" type="x:CT_ExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="x:ST_Xstring" use="required"/>
<xsd:attribute name="cache" type="x:ST_Xstring" use="required"/>
<xsd:attribute name="caption" type="x:ST_Xstring" use="optional"/>
<xsd:attribute name="showHeader" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="showSelectionLabel" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="showTimeLevel" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="showHorizontalScrollbar" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="level" type="xsd:unsignedInt" use="required"/>
<xsd:attribute name="selectionLevel" type="xsd:unsignedInt" use="required"/>
<xsd:attribute name="scrollPosition" type="xsd:dateTime" use="optional"/>
<xsd:attribute name="style" type="x:ST_Xstring" use="optional"/>
</xsd:complexType>
See section 5.3 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).