RibbonTab.ControlId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the unique name by which a Microsoft Office application refers to the tab.
public:
property Microsoft::Office::Tools::Ribbon::RibbonControlId ^ ControlId { Microsoft::Office::Tools::Ribbon::RibbonControlId ^ get(); void set(Microsoft::Office::Tools::Ribbon::RibbonControlId ^ value); };
public Microsoft.Office.Tools.Ribbon.RibbonControlId ControlId { get; set; }
member this.ControlId : Microsoft.Office.Tools.Ribbon.RibbonControlId with get, set
Public Property ControlId As RibbonControlId
Property Value
A RibbonControlId that contains the unique name by which Office refers to the tab.
Remarks
The ControlId value can identify either an Office built-in control (by using an idMSO
value) or a custom control.
For an Office built-in tab, the OfficeId is a known fixed value that describes a pre-existing Office control. The list of OfficeId values can be found at the Microsoft Download Center Web page Office 2010 Help Files: Office Fluent User Interface Control Identifiers.
For a custom tab, the name of the RibbonTab automatically propagates to the ControlId and the CustomId. You can only change the ControlId and the CustomId by changing the name of the RibbonTab.