RibbonComponent.Ribbon Property (2007 System)
Gets the top-level Ribbon object that contains the control hierarchy.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public Overridable ReadOnly Property Ribbon As OfficeRibbon
'Usage
Dim instance As RibbonComponent
Dim value As OfficeRibbon
value = instance.Ribbon
[BrowsableAttribute(false)]
public virtual OfficeRibbon Ribbon { get; }
[BrowsableAttribute(false)]
public:
virtual property OfficeRibbon^ Ribbon {
OfficeRibbon^ get ();
}
public function get Ribbon () : OfficeRibbon
Property Value
Type: Microsoft.Office.Tools.Ribbon.OfficeRibbon
A top-level Ribbon object that contains the rest of the control hierarchy.
Remarks
The Ribbon property is best suited for navigating to controls near the top of the control hierarchy.
.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.