DesignerLoader 類別

定義

提供基本的設計器載入器介面,可用來實作自訂的設計器載入器。

public ref class DesignerLoader abstract
public abstract class DesignerLoader
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class DesignerLoader
type DesignerLoader = class
[<System.Runtime.InteropServices.ComVisible(true)>]
type DesignerLoader = class
Public MustInherit Class DesignerLoader
繼承
DesignerLoader
衍生
屬性

備註

DesignerLoader 可實作以支援自訂載入設計器及設計元件。 設計者載入器同時負責將開啟文件的變更寫回載入器在呼叫該方法後 Flush 所使用的儲存空間。

預設情況下,Visual Studio開發環境會建立自己的各種 DesignerLoader,可以載入基本的設計專案。 要建立自訂設計器載入器,必須繼承並實作抽象 DesignerLoader 類別。 你無法直接實 DesignerLoader例化 ,因為它沒有公共建構器。

BeginLoad 被呼叫時,設計器載入設計文件,並透過IDesignerHost介面顯示設計器表面,完成後呼叫EndLoadIDesignerLoaderHost介面。 實 IDesignerLoaderHost 作通常與實作 IDesignerHost的類別相同。

建構函式

名稱 Description
DesignerLoader()

初始化 DesignerLoader 類別的新執行個體。

屬性

名稱 Description
Loading

會取得一個值,表示載入器是否正在載入文件。

方法

名稱 Description
BeginLoad(IDesignerLoaderHost)

開始載入設計師。

Dispose()

釋放所有由 DesignerLoader.

Equals(Object)

判斷指定的 物件是否等於目前的物件。

(繼承來源 Object)
Flush()

會將快取的變更寫入設計者載入的位置。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於