DesignSurfaceManager Class

 

Manages a collection of DesignSurface objects.

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

System.Object
  System.ComponentModel.Design.DesignSurfaceManager

[SecurityCriticalAttribute]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class DesignSurfaceManager : IServiceProvider, IDisposable

NameDescription
System_CAPS_pubmethodDesignSurfaceManager()

Initializes a new instance of the DesignSurfaceManager class.

System_CAPS_pubmethodDesignSurfaceManager(IServiceProvider)

Initializes a new instance of the DesignSurfaceManager class.

NameDescription
System_CAPS_pubpropertyActiveDesignSurface

Gets or sets the active designer.

System_CAPS_pubpropertyDesignSurfaces

Gets a collection of design surfaces.

System_CAPS_protpropertyServiceContainer

Gets the design surface manager's ServiceContainer.

NameDescription
System_CAPS_pubmethodCreateDesignSurface()

Creates an instance of a design surface.

System_CAPS_pubmethodCreateDesignSurface(IServiceProvider)

Creates an instance of a design surface.

System_CAPS_protmethodCreateDesignSurfaceCore(IServiceProvider)

Implementation that creates the design surface.

System_CAPS_pubmethodDispose()

Releases the resources used by the DesignSurfaceManager.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the DesignSurfaceManager and optionally releases the managed resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetService(Type)

Gets a service in the design surface manager’s service container.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubeventActiveDesignSurfaceChanged

Occurs when the currently active designer changes.

System_CAPS_pubeventDesignSurfaceCreated

Occurs when a designer is created.

System_CAPS_pubeventDesignSurfaceDisposed

Occurs when a designer is disposed.

System_CAPS_pubeventSelectionChanged

Occurs when the global selection changes.

The DesignSurfaceManager class is designed to be a container of DesignSurface objects. It provides common services that handle event routing between designers, property windows, and other global objects. Using DesignSurfaceManager is optional, but it is recommended if you intend to have several designer windows.

The DesignSurfaceManager class provides several design-time services automatically. You can override each of these services 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 added to the service container that implement the IDisposable interface are disposed when the design surface manager is disposed. The DesignSurfaceManager class provides the IDesignerEventService interface as the default service. IDesignerEventService provides a global eventing mechanism for designer events. With this mechanism, an application is informed when a designer becomes active. The service provides a collection of designers and a single place where global objects, such as the Properties window, can monitor selection change events.

NamedPermissionSet

for full access to system resources. Demand values: LinkDemand, InheritanceDemand. Associated state:

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: