RibbonTab.ControlId Property


Gets or sets the unique name by which a Microsoft Office application refers to the tab.

public Microsoft.Office.Tools.Ribbon.RibbonControlId ControlId { get; set; }

Property Value


A RibbonControlId that contains the unique name by which Office refers to the tab.


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.

Applies to