Share via


RibbonComponent.Parent Property

Definition

Gets a RibbonComponent that represents the parent of this RibbonComponent.

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

Property Value

A RibbonComponent that represents the parent of this RibbonComponent.

Attributes

Remarks

Use the Parent property to navigate the control hierarchy to controls a few levels above the current RibbonComponent object.

If your control is deeply nested and the control you want to find is closer to the Ribbon, you might want to consider using the Ribbon property and the collections that belong to the container controls that are derived from RibbonComponent to navigate to the control.

Applies to