DesignSurface.BeginLoad 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
开始加载过程。
重载
| 名称 | 说明 |
|---|---|
| BeginLoad(DesignerLoader) |
使用给定设计器加载程序开始加载过程。 |
| BeginLoad(Type) |
开始加载过程。 |
BeginLoad(DesignerLoader)
- Source:
- DesignSurface.cs
- Source:
- DesignSurface.cs
- Source:
- DesignSurface.cs
- Source:
- DesignSurface.cs
- Source:
- DesignSurface.cs
使用给定设计器加载程序开始加载过程。
public:
void BeginLoad(System::ComponentModel::Design::Serialization::DesignerLoader ^ loader);
public void BeginLoad(System.ComponentModel.Design.Serialization.DesignerLoader loader);
member this.BeginLoad : System.ComponentModel.Design.Serialization.DesignerLoader -> unit
Public Sub BeginLoad (loader As DesignerLoader)
参数
- loader
- DesignerLoader
用于加载设计器的设计器加载程序。
例外
loader 是 null。
注解
设计器加载可以是异步的,因此加载可能会在返回此调用后继续进行。 将事件处理程序附加到 LoadComplete 在设计图面完成加载时要通知的事件。
调用后 BeginLoad ,可以立即获取设计器的视图,因为设计器加载程序在异步加载时必须至少提供根组件。
另请参阅
适用于
BeginLoad(Type)
- Source:
- DesignSurface.cs
- Source:
- DesignSurface.cs
- Source:
- DesignSurface.cs
- Source:
- DesignSurface.cs
- Source:
- DesignSurface.cs
开始加载过程。
public:
void BeginLoad(Type ^ rootComponentType);
public void BeginLoad(Type rootComponentType);
member this.BeginLoad : Type -> unit
Public Sub BeginLoad (rootComponentType As Type)
参数
- rootComponentType
- Type
在设计模式下创建的组件类型。
例外
rootComponentType 是 null。
注解
指定后 rootComponentType ,只需创建一个 rootComponentType 实例的默认设计器加载程序即可使用。 设计器加载可以是异步的,因此加载可能会在返回此调用后继续进行。 将事件处理程序附加到 LoadComplete 在设计图面完成加载时要通知的事件。
调用后 BeginLoad ,可以立即获取设计器的视图,因为设计器加载程序在异步加载时必须至少提供根组件。