RibbonComponent.Parent Property (2007 System)
Gets a RibbonComponent that represents the parent of this RibbonComponent.
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 Parent As RibbonComponent
'Usage
Dim instance As RibbonComponent
Dim value As RibbonComponent
value = instance.Parent
[BrowsableAttribute(false)]
public RibbonComponent Parent { get; }
[BrowsableAttribute(false)]
public:
property RibbonComponent^ Parent {
RibbonComponent^ get ();
}
public function get Parent () : RibbonComponent
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.