IDesignerLoaderHost 接口

定义

提供一个接口,该接口可扩展设计器宿主以支持从序列化状态加载。Provides an interface that can extend a designer host to support loading from a serialized state.

public interface class IDesignerLoaderHost : IServiceProvider, System::ComponentModel::Design::IDesignerHost
public interface IDesignerLoaderHost : IServiceProvider, System.ComponentModel.Design.IDesignerHost
type IDesignerLoaderHost = interface
    interface IDesignerHost
    interface IServiceContainer
    interface IServiceProvider
Public Interface IDesignerLoaderHost
Implements IDesignerHost, IServiceProvider
派生
实现

注解

IDesignerHost 可以实现此接口以启用 DesignerLoader加载支持。An IDesignerHost can implement this interface to enable support for loading by a DesignerLoader.

设计器加载程序通知设计器宿主它需要调用加载或重新加载,以便设计器宿主可以在这些时间执行其他任务。The designer loader informs the designer host that it needs to invoke a load or reload so that the designer host can perform additional tasks at these times.

此类是与 IDesignerHost 隔离的,旨在强调设计器加载程序(而不是设计器宿主)必须启动设计文档的所有加载和重新加载。This class is isolated from IDesignerHost to emphasize that the designer loader, not the designer host, must initiate all loading and reloading of the design document.

属性

Container

获取此设计器宿主的容器。Gets the container for this designer host.

(继承自 IDesignerHost)
InTransaction

获取一个值,该值指示设计器宿主当前是否在事务中。Gets a value indicating whether the designer host is currently in a transaction.

(继承自 IDesignerHost)
Loading

获取一个值,该值指示设计器宿主当前是否正在加载文档。Gets a value indicating whether the designer host is currently loading the document.

(继承自 IDesignerHost)
RootComponent

获取用作当前设计的根组件的基类的实例。Gets the instance of the base class used as the root component for the current design.

(继承自 IDesignerHost)
RootComponentClassName

获取所设计的类的完全限定名。Gets the fully qualified name of the class being designed.

(继承自 IDesignerHost)
TransactionDescription

获取当前事务的说明。Gets the description of the current transaction.

(继承自 IDesignerHost)

方法

Activate()

激活此宿主所承载的设计器。Activates the designer that this host is hosting.

(继承自 IDesignerHost)
AddService(Type, Object)

将指定的服务添加到服务容器中。Adds the specified service to the service container.

(继承自 IServiceContainer)
AddService(Type, Object, Boolean)

将指定的服务添加到服务容器,并将此服务提升到任何父级服务容器(可选)。Adds the specified service to the service container, and optionally promotes the service to any parent service containers.

(继承自 IServiceContainer)
AddService(Type, ServiceCreatorCallback)

将指定的服务添加到服务容器中。Adds the specified service to the service container.

(继承自 IServiceContainer)
AddService(Type, ServiceCreatorCallback, Boolean)

将指定的服务添加到服务容器,并将此服务提升到父级服务容器(可选)。Adds the specified service to the service container, and optionally promotes the service to parent service containers.

(继承自 IServiceContainer)
CreateComponent(Type)

创建指定类型的组件,并将其添加到设计文档中。Creates a component of the specified type and adds it to the design document.

(继承自 IDesignerHost)
CreateComponent(Type, String)

创建指定类型和名称的组件,并将其添加到设计文档中。Creates a component of the specified type and name, and adds it to the design document.

(继承自 IDesignerHost)
CreateTransaction()

创建 DesignerTransaction,它可封装事件序列以提高性能并启用撤消和重复支持功能。Creates a DesignerTransaction that can encapsulate event sequences to improve performance and enable undo and redo support functionality.

(继承自 IDesignerHost)
CreateTransaction(String)

使用指定的事务说明创建 DesignerTransaction,它可封装事件序列以提高性能并启用撤消和重复支持功能。Creates a DesignerTransaction that can encapsulate event sequences to improve performance and enable undo and redo support functionality, using the specified transaction description.

(继承自 IDesignerHost)
DestroyComponent(IComponent)

销毁指定组件并将其从设计器容器中移除。Destroys the specified component and removes it from the designer container.

(继承自 IDesignerHost)
EndLoad(String, Boolean, ICollection)

结束设计器加载操作。Ends the designer loading operation.

GetDesigner(IComponent)

获取包含指定组件的设计器实例。Gets the designer instance that contains the specified component.

(继承自 IDesignerHost)
GetService(Type)

获取指定类型的服务对象。Gets the service object of the specified type.

(继承自 IServiceProvider)
GetType(String)

获取指定的完全限定类型名称的实例。Gets an instance of the specified, fully qualified type name.

(继承自 IDesignerHost)
Reload()

重新加载设计文档。Reloads the design document.

RemoveService(Type)

从服务容器中删除指定的服务类型。Removes the specified service type from the service container.

(继承自 IServiceContainer)
RemoveService(Type, Boolean)

从服务容器中删除指定的服务类型,并将此服务提升到父级服务容器(可选)。Removes the specified service type from the service container, and optionally promotes the service to parent service containers.

(继承自 IServiceContainer)

事件

Activated

在激活此设计器时发生。Occurs when this designer is activated.

(继承自 IDesignerHost)
Deactivated

在停用此设计器时发生。Occurs when this designer is deactivated.

(继承自 IDesignerHost)
LoadComplete

在此设计器加载完文档时发生。Occurs when this designer completes loading its document.

(继承自 IDesignerHost)
TransactionClosed

添加 TransactionClosed 事件的事件处理程序。Adds an event handler for the TransactionClosed event.

(继承自 IDesignerHost)
TransactionClosing

添加 TransactionClosing 事件的事件处理程序。Adds an event handler for the TransactionClosing event.

(继承自 IDesignerHost)
TransactionOpened

添加 TransactionOpened 事件的事件处理程序。Adds an event handler for the TransactionOpened event.

(继承自 IDesignerHost)
TransactionOpening

添加 TransactionOpening 事件的事件处理程序。Adds an event handler for the TransactionOpening event.

(继承自 IDesignerHost)

适用于

另请参阅