RibbonComponent.Parent Property

Gets a RibbonComponent that represents the parent of this RibbonComponent.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
ReadOnly Property Parent As RibbonComponent
[BrowsableAttribute(false)]
RibbonComponent Parent { get; }

Property Value

Type: Microsoft.Office.Tools.Ribbon.RibbonComponent
A RibbonComponent that represents the parent of this RibbonComponent.

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.

.NET Framework Security

See Also

Reference

RibbonComponent Interface

Microsoft.Office.Tools.Ribbon Namespace