RibbonTab.ControlId Property (2007 System)
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.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Property ControlId As RibbonControlId
'Usage
Dim instance As RibbonTab
Dim value As RibbonControlId
value = instance.ControlId
instance.ControlId = value
public RibbonControlId ControlId { get; set; }
public:
property RibbonControlId^ ControlId {
RibbonControlId^ get ();
void set (RibbonControlId^ value);
}
public function get ControlId () : RibbonControlId
public function set ControlId (value : RibbonControlId)
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
- 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