PivotSource class

Defines the PivotSource Class.This class is only available in O15. When the object is serialized out as xml, its qualified name is c15:pivotSource.

Inheritance hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office15.Drawing.Chart.PivotSource

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(PivotTableName))> _
<ChildElementInfoAttribute(GetType(FormatId))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office15)> _
Public Class PivotSource _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As PivotSource
[ChildElementInfoAttribute(typeof(PivotTableName))]
[ChildElementInfoAttribute(typeof(FormatId))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
[OfficeAvailabilityAttribute(FileFormatVersions.Office15)]
public class PivotSource : OpenXmlCompositeElement

Remarks

2.3.34 pivotSource

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

A CT_PivotSource ([ISO/IEC-29500-4] section A.5.1) element that specifies the source pivot table for a pivot chart. MUST exist only if the pivot table associated with the chart ([ISO/IEC-29500-1] section 21.2) is a Non-WorkSheet PivotTable ([MS-XLSX] section 2.3.3 and [MS-XLSB] section 2.2.5.5).

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

<xsd:element name="pivotSource" type="c:CT_PivotSource"/>

See section 5.14 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

PivotSource members

DocumentFormat.OpenXml.Office15.Drawing.Chart namespace