DesignSurfaceManager DesignSurfaceManager DesignSurfaceManager DesignSurfaceManager Class

Definición

Administra una colección de objetos DesignSurface.Manages a collection of DesignSurface objects.

public ref class DesignSurfaceManager : IDisposable, IServiceProvider
[System.Security.SecurityCritical]
public class DesignSurfaceManager : IDisposable, IServiceProvider
type DesignSurfaceManager = class
    interface IServiceProvider
    interface IDisposable
Public Class DesignSurfaceManager
Implements IDisposable, IServiceProvider
Herencia
DesignSurfaceManagerDesignSurfaceManagerDesignSurfaceManagerDesignSurfaceManager
Atributos
Implementaciones

Comentarios

La DesignSurfaceManager clase está diseñada para ser un contenedor de DesignSurface objetos.The DesignSurfaceManager class is designed to be a container of DesignSurface objects. Proporciona servicios comunes que controlan el enrutamiento de eventos entre diseñadores, ventanas de propiedades y otros objetos globales.It provides common services that handle event routing between designers, property windows, and other global objects. El DesignSurfaceManager uso de es opcional, pero se recomienda si desea tener varias ventanas del diseñador.Using DesignSurfaceManager is optional, but it is recommended if you intend to have several designer windows.

La DesignSurfaceManager clase proporciona automáticamente varios servicios en tiempo de diseño.The DesignSurfaceManager class provides several design-time services automatically. Puede invalidar cada uno de estos servicios reemplazándolo en la propiedad protegida ServiceContainer .You can override each of these services by replacing them in the protected ServiceContainer property. Para reemplazar un servicio, invalide el constructor, llame a base y realice los cambios a ServiceContainer través de la propiedad protegida.To replace a service, override the constructor, call base, and make any changes through the protected ServiceContainer property. Todos los servicios agregados al contenedor de servicios que IDisposable implementan la interfaz se eliminan cuando se desecha el administrador de la superficie de diseño.All services added to the service container that implement the IDisposable interface are disposed when the design surface manager is disposed. La DesignSurfaceManager clase proporciona la IDesignerEventService interfaz como el servicio predeterminado.The DesignSurfaceManager class provides the IDesignerEventService interface as the default service. IDesignerEventServiceproporciona un mecanismo global de eventos para los eventos del diseñador.IDesignerEventService provides a global eventing mechanism for designer events. Con este mecanismo, se informa a una aplicación cuando se activa un diseñador.With this mechanism, an application is informed when a designer becomes active. El servicio proporciona una colección de diseñadores y un único lugar en el que los objetos globales, como el ventana Propiedades, pueden supervisar los eventos de cambio de selección.The service provides a collection of designers and a single place where global objects, such as the Properties window, can monitor selection change events.

Constructores

DesignSurfaceManager() DesignSurfaceManager() DesignSurfaceManager() DesignSurfaceManager()

Inicializa una nueva instancia de la clase DesignSurfaceManager.Initializes a new instance of the DesignSurfaceManager class.

DesignSurfaceManager(IServiceProvider) DesignSurfaceManager(IServiceProvider) DesignSurfaceManager(IServiceProvider) DesignSurfaceManager(IServiceProvider)

Inicializa una nueva instancia de la clase DesignSurfaceManager.Initializes a new instance of the DesignSurfaceManager class.

Propiedades

ActiveDesignSurface ActiveDesignSurface ActiveDesignSurface ActiveDesignSurface

Obtiene o establece el diseñador activo.Gets or sets the active designer.

DesignSurfaces DesignSurfaces DesignSurfaces DesignSurfaces

Obtiene una colección de superficies de diseño.Gets a collection of design surfaces.

ServiceContainer ServiceContainer ServiceContainer ServiceContainer

Obtiene la propiedad ServiceContainer del administrador de la superficie de diseño.Gets the design surface manager's ServiceContainer.

Métodos

CreateDesignSurface() CreateDesignSurface() CreateDesignSurface() CreateDesignSurface()

Crea una instancia de una superficie de diseño.Creates an instance of a design surface.

CreateDesignSurface(IServiceProvider) CreateDesignSurface(IServiceProvider) CreateDesignSurface(IServiceProvider) CreateDesignSurface(IServiceProvider)

Crea una instancia de una superficie de diseño.Creates an instance of a design surface.

CreateDesignSurfaceCore(IServiceProvider) CreateDesignSurfaceCore(IServiceProvider) CreateDesignSurfaceCore(IServiceProvider) CreateDesignSurfaceCore(IServiceProvider)

Implementación que crea la superficie de diseño.Implementation that creates the design surface.

Dispose() Dispose() Dispose() Dispose()

Libera los recursos que usa DesignSurfaceManager.Releases the resources used by the DesignSurfaceManager.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Libera los recursos no administrados que usa DesignSurfaceManager y, de forma opcional, libera los recursos administrados.Releases the unmanaged resources used by the DesignSurfaceManager and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Obtiene un servicio del contenedor de servicios del administrador de la superficie de diseño.Gets a service in the design surface manager's service container.

GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Eventos

ActiveDesignSurfaceChanged ActiveDesignSurfaceChanged ActiveDesignSurfaceChanged ActiveDesignSurfaceChanged

Se produce cuando cambia el actual diseñador activo.Occurs when the currently active designer changes.

DesignSurfaceCreated DesignSurfaceCreated DesignSurfaceCreated DesignSurfaceCreated

Se produce cuando se crea un diseñador.Occurs when a designer is created.

DesignSurfaceDisposed DesignSurfaceDisposed DesignSurfaceDisposed DesignSurfaceDisposed

Se produce cuando se desecha un diseñador.Occurs when a designer is disposed.

SelectionChanged SelectionChanged SelectionChanged SelectionChanged

Se produce cuando cambia la selección global.Occurs when the global selection changes.

Seguridad

NamedPermissionSet
para obtener acceso completo a los recursos del sistema.for full access to system resources. Valores de petición LinkDemand: InheritanceDemand,.Demand values: LinkDemand, InheritanceDemand. Estado asociado:Associated state:

Se aplica a

Consulte también: