OfficeRibbon.RibbonId Property
Gets the Ribbon ID that was used to create this instance of the OfficeRibbon object.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
ReadOnly Property RibbonId As String
string RibbonId { get; }
Property Value
Type: System.String
The Ribbon ID that was used to create this instance of the OfficeRibbon interface.
Remarks
You should not attempt to set this property.
You can use the RibbonType property to get all of the Ribbon IDs that are associated with this OfficeRibbon instance. The RibbonId property returns only the single ID that was used to create this OfficeRibbon instance. For example, you can use this property to determine whether this Ribbon instance is being displayed in a mail composition item.
.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.