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 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Office.Tools.Ribbon Namespace