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

プロパティ値

ControlDesignerState

DesignerState を実装し、IDictionary を使用して、デザイン時に関連付けられているコントロールの状態データを永続化する IComponentDesignerStateService プロパティ。

注釈

ユーザーがデザイン ビューからソース ビューに切り替えたり、ドキュメントを再読み込みしたり、デザイン ホストを閉じて再度開いたりした場合でも、プロパティの値 DesignerState は保持されます。

返されたオブジェクトの値は、IDictionary オブジェクトと同様に取得および設定でき、値は自動的に永続化されます。

適用対象

こちらもご覧ください