MemberProperty Class

OLAP Member Property.When the object is serialized out as xml, its qualified name is x:mp.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Spreadsheet.MemberProperty

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

Syntax

'Declaration
Public Class MemberProperty _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As MemberProperty
public class MemberProperty : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

18.10.1.57 mp (OLAP Member Property)

Represents an OLAP member property.

[Example:

<sh:mp field="7"/>

end example]

Parent Elements

mps (§18.10.1.59)

Attributes

Description

field (Field Index)

Specifies the index of the field with which this member property is associated.

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

level (Level Index)

Specifies the index of the level to which this member property applies.

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

name (OLAP Member Property Unique Name)

Specifies the unique name of the OLAP member property. The following attributes depend on the name attribute:

  • nameLen

  • pLen

  • pPos

These attributes consist of metadata about a member in an OLAP cube and are usually displayed in a tooltip or mechanism in the user interface.

[Example: If the value for name equals "[Store].[Store Name].[Store Manager]":

  • nameLen will equal 20. This would refer to “[Store].[Store Name]”

  • pPos will equal 22. This would refer to starting character of “Store Manager”

  • pLen will equal 13. This would to length of “Store Manager”

end example]

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

nameLen (Name Length)

Specifies the length of the unique name portion of name. [Example: If the value for name equals "[Store].[Store Name].[Store Manager]", nameLen will equal 20. This would refer to “[Store].[Store Name]”. end example]

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

pLen (Property Name Length)

Specifies the length of the property name portion of name. [Example: If the value for name equals "[Store].[Store Name].[Store Manager]", pLen will equal 13. This would to length of “Store Manager”. end example]

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

pPos (Property Name Character Index)

Specifies the index of the character where the property name portion begins in name. [Example: If the value for name equals "[Store].[Store Name].[Store Manager]", pPos will equal 22. This would refer to starting character of “Store Manager”. end example]

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

showAsCaption (Show As Caption)

Specifies a boolean value that indicates whether to show the property a member caption.

A value of 1 or true indicates member property value is shown in as a caption.

A value of 0 or false indicates member property value will not be shown.

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

showCell (Show Cell)

Specifies a boolean value that indicates whether to show the member property value in a PivotTable cell.

A value of 1 or true indicates member property value is shown in a cell.

A value of 0 or false indicates member property value will not be shown.

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

showTip (Show Tooltip)

Specifies a boolean value that indicates whether to show the member property value in a tooltip on the appropriate PivotTable view cells.

A value of 1 or true indicates member property value is shown in a tooltip.

A value of 0 or false indicates member property value will not be shown. This attribute depends on whether the application employs tooltips or similar mechanism in the user interface.

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_MemberProperty) 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

MemberProperty Members

DocumentFormat.OpenXml.Spreadsheet Namespace