ControlDesigner.DesignerState 屬性

定義

取得物件,用於在設計階段保存關聯控制項的資料。

protected:
 property System::Web::UI::Design::ControlDesignerState ^ DesignerState { System::Web::UI::Design::ControlDesignerState ^ get(); };
protected System.Web.UI.Design.ControlDesignerState DesignerState { get; }
member this.DesignerState : System.Web.UI.Design.ControlDesignerState
Protected ReadOnly Property DesignerState As ControlDesignerState

屬性值

DesignerState 屬性,會實作 IDictionary 並使用 IComponentDesignerStateService 在設計階段保存關聯控制項的狀態資料。

備註

即使使用者從 [設計] 切換至 [來源] 檢視,或重載檔,或關閉並重新開啟設計主機,屬性的值 DesignerState 仍會保存。

您可以在傳回的物件中取得和設定值,就像在 IDictionary 物件中一樣,這些值會自動儲存。

適用於

另請參閱