DesignSurface.ComponentContainer Property

Definition

Gets the IContainer implementation within the design surface.

C#
public System.ComponentModel.IContainer ComponentContainer { get; }

Property Value

The IContainer implementation within the design surface.

Exceptions

The IDesignerHost attached to the DesignSurface has been disposed.

Remarks

The ComponentContainer property holds all objects that are currently in design mode. When components are added to ComponentContainer, their designer, if any, is loaded. The component is sited with a site that provides full access to the design surface.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9