Partager via


RibbonDropDownItem.Ribbon Property

Definition

Gets the top-level Ribbon object that contains the rest of the control hierarchy.

public:
 property Microsoft::Office::Tools::Ribbon::OfficeRibbon ^ Ribbon { Microsoft::Office::Tools::Ribbon::OfficeRibbon ^ get(); };
[System.ComponentModel.Browsable(false)]
public Microsoft.Office.Tools.Ribbon.OfficeRibbon Ribbon { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Ribbon : Microsoft.Office.Tools.Ribbon.OfficeRibbon
Public ReadOnly Property Ribbon As OfficeRibbon

Property Value

A top-level Ribbon object that contains the rest of the control hierarchy.

Attributes

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.

Applies to