IControlDesignerAccessor IControlDesignerAccessor IControlDesignerAccessor IControlDesignerAccessor Interface

定義

提供控制項設計工具存取,以暫存與控制項關聯的設計階段資料。Provides access to a control designer to store temporary design-time data associated with a control.

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

備註

IControlDesignerAccessor介面中定義的屬性和方法提供一個便利的方式, 讓控制項設計工具存取控制項以傳遞和抓取暫存設計階段資料。The property and methods defined in the IControlDesignerAccessor interface offer a convenient way for the control designer to access a control for passing and retrieving temporary design-time data. 介面是由Control類別所執行。The interface is implemented by the Control class. 控制項設計工具會使用此介面的實作為存取控制項。Control designers use the implementation of this interface to access the control.

暫存設計階段資料不會與控制項本身一起保存。Temporary design-time data is not persisted with the control itself. 若要保存控制項的設計階段資料, 您應該取出UserData屬性的內容, 並將其儲存在設計工具特定的位置。To persist design-time data for a control, you should retrieve the contents of the UserData property and store them in a designer-specific location.

屬性

UserData UserData UserData UserData

實作時,取得控制項設計工具可存取的資訊集合。When implemented, gets a collection of information that can be accessed by a control designer.

方法

GetDesignModeState() GetDesignModeState() GetDesignModeState() GetDesignModeState()

實作時,在控制項用於設計介面期間從控制項取得狀態。When implemented, gets the state from the control during use on the design surface.

SetDesignModeState(IDictionary) SetDesignModeState(IDictionary) SetDesignModeState(IDictionary) SetDesignModeState(IDictionary)

實作時,會先設定控制項狀態,以在設計介面上呈現。When implemented, sets control state before rendering it on the design surface.

SetOwnerControl(Control) SetOwnerControl(Control) SetOwnerControl(Control) SetOwnerControl(Control)

實作時,指定控制項做為實作這個方法之控制項的擁有者。When implemented, specifies the control that acts as the owner to the control implementing this method.

適用於

另請參閱