共用方式為


GroupLevel Class

OLAP Grouping Levels.When the object is serialized out as xml, its qualified name is x:groupLevel.

Inheritance Hierarchy

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

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

Syntax

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

Remarks

The following table lists the possible child types:

  • Groups <x:groups>

  • ExtensionList <x:extLst>

[ISO/IEC 29500-1 1st Edition]

18.10.1.39 groupLevel (OLAP Grouping Levels)

Represents the collection of OLAP grouping levels.

[Example:

<groupLevel uniqueName="[Product].[Product Categories].[Category]"
caption="Category">
<groups count="1">
<group name="CategoryXl_Grp_1" uniqueName="[Product].[Product
Categories].[Product Categories1].
[GROUPMEMBER.[CategoryXl_Grp_1]].[Product]].[Product Categories]].
[All Products]]]" caption="Group1" uniqueParent="[Product].
[Product Categories].[All Products]" id="1">
      <groupMembers count="2">
<groupMember
uniqueName="[Product].[Product Categories].[Category].&amp;[4]"/>
<groupMember
uniqueName="[Product].[Product Categories].[Category].&amp;[1]"/>
</groupMembers>
</group>
</groups>
</groupLevel>

end example]

Parent Elements

groupLevels (§18.10.1.40)

Child Elements

Subclause

extLst (Future Feature Data Storage Area)

§18.2.10

groups (OLAP Level Groups)

§18.10.1.43

Attributes

Description

caption (Grouping Level Display Name)

Specifies the display name for this grouping level.

The possible values for this attribute are defined by the ST_Xstring simple type (§22.9.2.19).

customRollUp (Custom Roll Up)

Specifies a boolean value that indicates whether this group level has a custom roll up.

A value of 1 or true indicates this group level has a custom roll up.

A value of 0 or false indicates this group level does not have a custom roll up.

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

uniqueName (Unique Name)

Specifies the unique name for this grouping level.

The possible values for this attribute are defined by the ST_Xstring simple type (§22.9.2.19).

user (User-Defined Group Level)

Specifies a boolean value that indicates whether this is a user-defined group level.

A value of 1 or true indicates this is a user-defined group.

A value of 0 or false indicates this group is not user-defined.

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

[Note: The W3C XML Schema definition of this element’s content model (CT_GroupLevel) 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

GroupLevel Members

DocumentFormat.OpenXml.Spreadsheet Namespace