ComponentDesigner.ParentComponent Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the parent component for this designer.

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

abstract ParentComponent : IComponent with get
override ParentComponent : IComponent with 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: