Udostępnij za pośrednictwem


RibbonDropDownItem.Ribbon Property (2007 System)

Gets the top-level Ribbon object that contains the rest of 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 ReadOnly Property Ribbon As OfficeRibbon
'Usage
Dim instance As RibbonDropDownItem 
Dim value As OfficeRibbon 

value = instance.Ribbon
[BrowsableAttribute(false)]
public OfficeRibbon Ribbon { get; }
[BrowsableAttribute(false)]
public:
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. If you have access to a control in the hierarchy slightly above or below the control you want to find, you might consider using its Parent property or its collection of child items to navigate to the item you want to get.

.NET Framework Security

See Also

Reference

RibbonDropDownItem Class

RibbonDropDownItem Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview