Presents a user interface for designing components.
Assembly: System.Design (in System.Design.dll)
Thetype exposes the following members.
|ComponentContainer||Gets the IContainer implementation within the design surface.|
|DtelLoading||Gets a value indicating whether the Design-time Error List is loading.|
|IsLoaded||Gets a value indicating whether the design surface is currently loaded.|
|LoadErrors||Returns a collection of loading errors or a void collection.|
|ServiceContainer||Gets the service container.|
|View||Gets the view for the root designer.|
|BeginLoad(DesignerLoader)||Begins the loading process with the given designer loader.|
|BeginLoad(Type)||Begins the loading process.|
|CreateComponent||Obsolete. Creates an instance of a component.|
|CreateDesigner||Creates a designer when a component is added to the container.|
|CreateInstance||Creates an instance of the given type.|
|CreateNestedContainer(IComponent)||Creates a container suitable for nesting controls or components.|
|CreateNestedContainer(IComponent, String)||Creates a container suitable for nesting controls or components.|
|Dispose()||Releases the resources used by the .|
|Dispose(Boolean)||Releases the resources used by the .|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|Flush||Serializes changes to the design surface.|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetService||Gets a service from the service container.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|OnLoaded||Raises the Loaded event.|
|OnLoading||Raises the Loading event.|
|OnUnloaded||Raises the Unloaded event.|
|OnUnloading||Raises the Unloading event.|
|OnViewActivate||Raises the ViewActivated event.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|Disposed||Occurs when the design surface is disposed.|
|Flushed||Occurs when a call is made to the Flush method of .|
|Loaded||Occurs when the designer load has completed.|
|Loading||Occurs when the designer is about to be loaded.|
|Unloaded||Occurs when a designer has finished unloading.|
|Unloading||Occurs when a designer is about to unload.|
|ViewActivated||Occurs when the Activate method has been called on IDesignerHost.|
The class implements what the user perceives as a designer. is the user interface the user manipulates to change design-time features. provides a completely self-contained design surface.
The class may be used as a stand-alone designer, or it may be coupled with the DesignSurfaceManager class to provide a common implementation for an application that hosts multiple objects.
The class can be used by itself, or the user can derive a new class from it and augment the behavior.
The class provides several design-time services automatically. The class adds all of its services in its constructor. Most of these services can be overridden by replacing them in the protected ServiceContainer property. To replace a service, override the constructor, call base, and make any changes through the protected ServiceContainer property. All services that are added to the service container and that implement IDisposable are disposed when the design surface is disposed. The default set of replaceable services that the class provides is shown in the following table.
Enables objects that are not part of the container’s components collection to provide their own extender providers.
Used by TypeDescriptor to get a list of extender providers. With this service, extender providers can live outside of the container.
Provides designer metadata hooks. This is the primary interface for metadata filtering.
Provides a way to select components in the designer.
Provides a way to get a name for objects, even when those objects are not sited.
Offers the design surface itself as a service.
Provides a base class for getting and setting option values for a designer.
The following table shows the non-replaceable services provided by default.
Raises events as changes are made to components.
Controls access to types, services, and transactions. Master interface for designers.
Owns the set of components that are being designed. Each designer has an IContainer that owns the components.
Derives from IServiceProvider and provides a way to add and remove services from the designer.
In addition to these services, the class also provides a single service that is available through a component’s site. This service is unique for each component. The following table shows the services that cannot be replaced.
A generic dictionary of key/value pairs that can be used to store arbitrary data about a component.
A container that enables a component to add additional child components to the designer. These components will be part of the design surface, but will not participate in serialization. This is useful when you want to design a control that is capable of exposing a region of itself in a designer, but you do not want the region to participate in serialization.
In addition to ISite, the site also implements the following interfaces.
Check for the existence of these interfaces, rather than use indiscriminate casting, because other site implementations may not implement them.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.