Office.Control interface
Represents an individual control or command and the state it should have.
Remarks
For code samples showing how to use a Control
object and its properties, see Enable and Disable Add-in Commands and Create custom contextual tabs.
Requirement set: RibbonAPI 1.1
Properties
enabled | Indicates whether the control should be enabled or disabled. The default is true. |
id | Identifier of the control as specified in the manifest. |
Property Details
enabled
Indicates whether the control should be enabled or disabled. The default is true.
enabled?: boolean;
Property Value
boolean
id
Identifier of the control as specified in the manifest.
id: string;
Property Value
string
Office Add-ins
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for