共用方式為


MeasureGroups Class

OLAP Measure Groups.When the object is serialized out as xml, its qualified name is x:measureGroups.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Spreadsheet.MeasureGroups

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(MeasureGroup))> _
Public Class MeasureGroups _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As MeasureGroups
[ChildElementInfoAttribute(typeof(MeasureGroup))]
public class MeasureGroups : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • MeasureGroup <x:measureGroup>

[ISO/IEC 29500-1 1st Edition]

18.10.1.54 measureGroups (OLAP Measure Groups)

Represents the collection of PivotTable OLAP measure groups.

[Example:

<measureGroups count="11">
<measureGroup name="Exchange Rates" caption="Exchange Rates"/>
<measureGroup name="Financial Reporting" caption="Financial Reporting"/>
<measureGroup name="Internet Customers" caption="Internet Customers"/>
<measureGroup name="Internet Orders" caption="Internet Orders"/>
<measureGroup name="Internet Sales" caption="Internet Sales"/>
  <measureGroup name="Reseller Orders" caption="Reseller Orders"/>
<measureGroup name="Reseller Sales" caption="Reseller Sales"/>
<measureGroup name="Sales Orders" caption="Sales Orders"/>
<measureGroup name="Sales Reasons" caption="Sales Reasons"/>
<measureGroup name="Sales Summary" caption="Sales Summary"/>
<measureGroup name="Sales Targets" caption="Sales Targets"/>
</measureGroups>

end example]

Parent Elements

pivotCacheDefinition (§18.10.1.67)

Child Elements

Subclause

measureGroup (OLAP Measure Group)

§18.10.1.53

Attributes

Description

count (Measure Group Count)

Specifies the number of measure groups in the PivotTable.

The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_MeasureGroups) is located in §A.2. end note]

© ISO/IEC29500: 2008.

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

MeasureGroups Members

DocumentFormat.OpenXml.Spreadsheet Namespace