IControlDesignerAccessor 介面

定義

提供控制項設計工具存取,以暫存與控制項關聯的設計階段資料。

public interface class IControlDesignerAccessor
public interface IControlDesignerAccessor
type IControlDesignerAccessor = interface
Public Interface IControlDesignerAccessor
衍生

備註

在介面中定義的屬性和方法 IControlDesignerAccessor 提供一個便利的方式,讓控制項設計工具存取用來傳遞和取得暫存設計階段資料的控制項。 介面是由類別所執行 Control 。 控制項設計工具會使用此介面的實作為存取控制項。

暫存設計階段資料不會與控制項本身一起保存。 若要保存控制項的設計階段資料,您應該取出屬性的內容, UserData 並將其儲存在設計工具的特定位置。

屬性

UserData

實作時,取得控制項設計工具可存取的資訊集合。

方法

GetDesignModeState()

實作時,在控制項用於設計介面期間從控制項取得狀態。

SetDesignModeState(IDictionary)

實作時,會先設定控制項狀態,以在設計介面上呈現。

SetOwnerControl(Control)

實作時,指定控制項做為實作這個方法之控制項的擁有者。

適用於

另請參閱