ParentControlDesigner.GetParentForComponent Method (IComponent)


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

Used by deriving classes to determine if it returns the control being designed or some other Container while adding a component to it.

Namespace:   System.Windows.Forms.Design
Assembly:  System.Design (in System.Design.dll)

protected virtual Control GetParentForComponent(
	IComponent component


Type: System.ComponentModel.IComponent

The component for which to retrieve the parent Control.

Return Value

Type: System.Windows.Forms.Control

The parent Control for the component.

.NET Framework
Available since 2.0
Return to top