IDesignerLoaderHost2 接口

定义

提供扩展 IDesignerLoaderHost 的接口,以指定在加载设计文档时是否允许发生错误。Provides an interface that extends IDesignerLoaderHost to specify whether errors are tolerated while loading a design document.

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

注解

使用 IDesignerLoaderHost2 接口来指定在反序列化期间发生错误时,设计器加载程序是否可以继续加载。Use the IDesignerLoaderHost2 interface to specify whether the designer loader can continue loading when errors occur during deserialization.

属性

CanReloadWithErrors

获取或设置一个值,以指示发生错误时是否可以重新加载。Gets or sets a value indicating whether it is possible to reload with errors.

Container

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

(继承自 IDesignerHost)
IgnoreErrorsDuringReload

获取或设置一个值,以指示在调用 Reload() 时是否应忽略错误。Gets or sets a value indicating whether errors should be ignored when Reload() is called.

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.

(继承自 IDesignerLoaderHost)
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.

(继承自 IDesignerLoaderHost)
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)

适用于

另请参阅