Item Class

Defines the Item Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is mso14:item.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Office2010.CustomUI.Item

Namespace:  DocumentFormat.OpenXml.Office2010.CustomUI
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class Item _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As Item
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class Item : OpenXmlLeafElement

Remarks

2.3.16 CT_Item

Target namespace: https://schemas.microsoft.com/office/2007/10/customui

Referenced by: CT_ComboBox, CT_DropDownRegular, CT_GalleryRegular, CT_Gallery

Specifies an item in a selection-type control.

Attributes:

id : An ST_UniqueID attribute that specifies the identifier of a custom control. All custom controls MUST have unique IDs. The id, idQ and idMso attributes are mutually exclusive. Exactly one of these attributes MUST be specified on all controls.

label : An ST_String attribute that specifies a string which is displayed as the label of this control.

image : An ST_Uri attribute that specifies the relationship identifier of an image file which is used as the icon for this control. The image and imageMso attributes are mutually exclusive. They MUST NOT be used together. If neither of these attributes are specified, then an icon is not displayed.

imageMso : An ST_ID attribute that specifies the identifier of a built-in image which is used as the icon for this control. The image and imageMso attributes are mutually exclusive. They MUST NOT be used together. If neither of these attributes are specified, then an icon is not displayed.

screentip : An ST_String attribute that specifies a string which is displayed as the tooltip for this control.

supertip : An ST_String attribute that specifies a string which is displayed as the Enhanced ScreenTip of this control.

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

<xsd:complexType name="CT_Item">

<xsd:attribute name="id" type="ST_UniqueID" use="optional"/>

<xsd:attribute name="label" type="ST_String" use="optional"/>

<xsd:attribute name="image" type="ST_Uri" use="optional"/>

<xsd:attribute name="imageMso" type="ST_ID" use="optional"/>

<xsd:attribute name="screentip" type="ST_String" use="optional"/>

<xsd:attribute name="supertip" type="ST_String" use="optional"/>

</xsd:complexType>

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

Item Members

DocumentFormat.OpenXml.Office2010.CustomUI Namespace