Gets the parent component for this designer.

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

protected virtual IComponent ParentComponent { get; }
property IComponent^ ParentComponent {
	virtual IComponent^ get();
abstract ParentComponent : IComponent with get
override ParentComponent : IComponent with get
Protected Overridable ReadOnly Property ParentComponent As IComponent

Property Value


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.

Version Information
.NET Framework
Available since 2.0
Return to top