ParentControlDesigner.CanParent Method (ControlDesigner)

 

Indicates whether the control managed by the specified designer can be a child of the control managed by this designer.

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

public virtual bool CanParent(
	ControlDesigner controlDesigner
)

Parameters

controlDesigner
Type: System.Windows.Forms.Design.ControlDesigner

The designer for the control to test.

Return Value

Type: System.Boolean

true if the control managed by the specified designer can be a child of the control managed by this designer; otherwise, false.

This method indicates whether the control managed by this designer can parent the control of the specified ControlDesigner.

.NET Framework
Available since 1.1
Return to top
Show: