ParentControlDesigner::GetParentForComponent Method (IComponent^)

 

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
)

Parameters

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
Show: