Megosztás a következőn keresztül:


RibbonComponent.Parent Property

Gets a RibbonComponent that represents the parent of this RibbonComponent.

Namespace:  Microsoft.Office.Tools.Ribbon
Assemblies:   Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
  Microsoft.Office.Tools.Common.v4.0.Utilities (in Microsoft.Office.Tools.Common.v4.0.Utilities.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