DesignSurface.CreateNestedContainer Method (IComponent) (System.ComponentModel.Design)

Switch View :
ScriptFree
.NET Framework Class Library
DesignSurface.CreateNestedContainer Method (IComponent)

Creates a container suitable for nesting controls or components.

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

Visual Basic
Public Function CreateNestedContainer ( _
	owningComponent As IComponent _
) As INestedContainer
C#
public INestedContainer CreateNestedContainer(
	IComponent owningComponent
)
Visual C++
public:
INestedContainer^ CreateNestedContainer(
	IComponent^ owningComponent
)
F#
member CreateNestedContainer : 
        owningComponent:IComponent -> INestedContainer 

Parameters

owningComponent
Type: System.ComponentModel.IComponent
The component that manages the nested container.

Return Value

Type: System.ComponentModel.INestedContainer
The nested container.
Exceptions

Exception Condition
ArgumentNullException

owningComponent is null.

ObjectDisposedException

The IDesignerHost attached to the DesignSurface has been disposed.

Remarks

Adding a component to a nested container creates its designer and makes it eligible for all services available from the design surface. Components added to nested containers do not participate in serialization.

Version Information

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0
.NET Framework Security

Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also

Reference