編輯

共用方式為


CommandUIDefinitionType complexType

(AppHostWebFeatures)

Note

The string app appears as part of or all of some element, attribute, and file names because SharePoint Add-ins were originally called "apps for SharePoint." To ensure backward compatibility, the schemas have not been changed.

Type information

Information Location
Namespace http://schemas.microsoft.com/sharepoint/
Schema File apphostwebfeatures.xsd
Extension Base None

Definition

    <xs:complexType name="CommandUIDefinitionType">
        <xs:choice minOccurs="0" maxOccurs="1">
            <xs:element name="Button" type="ButtonType"></xs:element>
            <xs:element name="CheckBox" type="CheckBoxType"></xs:element>
            <xs:element name="ComboBox" type="ComboBoxType"></xs:element>
            <xs:element name="ColorPicker" type="ColorPickerType"></xs:element>
            <xs:element name="ContextualGroup" type="ContextualGroupType"></xs:element>
            <xs:element name="ContextualTabs" type="ContextualTabsType"></xs:element>
            <xs:element name="Controls" type="ControlsType"></xs:element>
            <xs:element name="DropDown" type="DropDownType"></xs:element>
            <xs:element name="FlyoutAnchor" type="FlyoutAnchorType"></xs:element>
            <xs:element name="Gallery" type="GalleryType"></xs:element>
            <xs:element name="GalleryButton" type="GalleryButtonType"></xs:element>
            <xs:element name="GroupTemplate" type="GroupTemplateType"></xs:element>
            <xs:element name="Group" type="GroupType"></xs:element>
            <xs:element name="Groups" type="GroupsType"></xs:element>
            <xs:element name="InsertTable" type="InsertTableType"></xs:element>
            <xs:element name="Label" type="LabelType"></xs:element>
            <xs:element name="MRUSplitButton" type="MRUSplitButtonType"></xs:element>
            <xs:element name="MaxSize" type="MaxSizeType"></xs:element>
            <xs:element name="Menu" type="MenuType"></xs:element>
            <xs:element name="MenuSection" type="MenuSectionType"></xs:element>
            <xs:element name="QAT" type="QATType"></xs:element>
            <xs:element name="Ribbon" type="RibbonType"></xs:element>
            <xs:element name="Scale" type="ScaleType"></xs:element>
            <xs:element name="Scaling" type="ScalingType"></xs:element>
            <xs:element name="Spinner" type="SpinnerType"></xs:element>
            <xs:element name="SplitButton" type="SplitButtonType"></xs:element>
            <xs:element name="Tab" type="TabType"></xs:element>
            <xs:element name="Tabs" type="TabsType"></xs:element>
            <xs:element name="TextBox" type="TextBoxType"></xs:element>
            <xs:element name="ToggleButton" type="ToggleButtonType"></xs:element>
        </xs:choice>
        <xs:attribute name="Location" type="xs:string" use="required" />
    </xs:complexType>

Elements and attributes

If the schema defines specific requirements, such as sequence, minOccurs, maxOccurs, and choice, see the definition section.

Child elements

Element

Type

Description

Button

ButtonType

CheckBox

CheckBoxType

ColorPicker

ColorPickerType

ComboBox

ComboBoxType

ContextualGroup

ContextualGroupType

ContextualTabs

ContextualTabsType

Controls

ControlsType

DropDown

DropDownType

FlyoutAnchor

FlyoutAnchorType

Gallery

GalleryType

GalleryButton

GalleryButtonType

Group

GroupType

Groups

GroupsType

GroupTemplate

GroupTemplateType

InsertTable

InsertTableType

Label

LabelType

MaxSize

MaxSizeType

Menu

MenuType

MenuSection

MenuSectionType

MRUSplitButton

MRUSplitButtonType

QAT

QATType

Ribbon

RibbonType

Scale

ScaleType

Scaling

ScalingType

Spinner

SpinnerType

SplitButton

SplitButtonType

Tab

TabType

Tabs

TabsType

TextBox

TextBoxType

ToggleButton

ToggleButtonType


Attributes

Attribute

Type

Required

Description

Possible values

Location

xs:string

required

Values of the xs:string type.