ParentComponent Property

ComponentDesigner.ParentComponent Property

 

Gets the parent component for this designer.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

protected virtual IComponent ParentComponent { get; }

Property Value

Type: System.ComponentModel.IComponent

The parent component for this designer, or null if this designer is the root component.

This property provides a generic mechanism for discovering parent relationships within designers, and is used by the ComponentDesigner object's ITreeDesigner interface implementation. This property should only return null when this designer is the root component. The default implementation of this property returns the root component for all components that are not the root component, and it returns null for the root component.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft