Control element
Defines a control that executes an action or launches a task pane. A <Control> element can be either a button or a menu option. At least one <Control> must be included in a Group element.
Add-in type: Task pane, Mail
Valid only in these VersionOverrides schemas:
- Task pane 1.0
- Mail 1.0
- Mail 1.1
For more information, see Version overrides in the add-in only manifest.
Associated with these requirement sets:
- AddinCommands 1.1 (For a task pane add-in.)
- Some child elements may be associated with additional requirement sets.
Attributes
Attribute | Required | Description |
---|---|---|
xsi:type | Yes | The type of control being defined. Can be Button , Menu , or MobileButton . |
id | Yes | The ID of the control element. Can be a maximum of 125 characters. Must be unique across all <Control> elements in the manifest. |
Note
The MobileButton
value for xsi:type is defined in VersionOverrides schema 1.1. It only applies to the <Control> elements contained within a MobileFormFactor element.
Child elements
The valid child elements depend on the value of the xsi:type attribute.
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Office Add-ins