Freigeben über


Command-Klasse

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

Vererbungshierarchie

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

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

Syntax

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

Hinweise

2.3.1 CT_Command

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

Referenced by: CT_Commands

Specifies a particular built-in command in the application whose functionality will be repurposed.

Attributes:

onAction : An ST_Delegate attribute that specifies the name of a callback function which is called when this control is invoked by the user.

enabled : A boolean attribute that specifies the enabled state of this control. The enabled and getEnabled attributes are mutually exclusive. They MUST NOT be used together. If neither attribute is specified, the control defaults to being enabled.

getEnabled : An ST_Delegate attribute that specifies the name of a callback function which is called to determine the enabled state of this control. The enabled and getEnabled attributes are mutually exclusive. They MUST NOT be used together. If neither attribute is specified, the control defaults to being enabled.

idMso : An ST_ID attribute that specifies the identifier of a built-in control. The id, idQ and idMso attributes are mutually exclusive. Exactly one of these attributes MUST be specified.

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

<xsd:complexType name="CT_Command" mixed="false">

<xsd:attributeGroup ref="AG_Action"/>

<xsd:attributeGroup ref="AG_Enabled"/>

<xsd:attributeGroup ref="AG_IDMso"/>

</xsd:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

Command-Member

DocumentFormat.OpenXml.Office2010.CustomUI-Namespace