Presents a user interface for designing components.
Assembly: System.Design (in System.Design.dll)
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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.