Share via


RibbonTab.ControlId Property

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

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
Property ControlId As RibbonControlId
RibbonControlId ControlId { get; set; }

Property Value

Type: Microsoft.Office.Tools.Ribbon.RibbonControlId
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 2007 Office System Document: Lists of Control IDs.

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.

.NET Framework Security

See Also

Reference

RibbonTab Interface

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview