Item class

Office 2013 and later

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

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

[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class Item : OpenXmlLeafElement

2.3.52 CT_Item

Target namespace: http://schemas.microsoft.com/office/2009/07/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, as specified in section 2.4.22, that specifies the identifier of a custom control. All custom controls MUST have unique identifiers. 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, as specified in section 2.4.19, that specifies a string that is displayed as the label of this control.

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

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

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

supertip: An ST_String attribute that specifies a string that 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).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: