共用方式為


DesignerView.Context 屬性

更新:2007 年 11 月

取得或設定這個檢視的編輯內容。

命名空間:  Microsoft.Windows.Design.Interaction
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

Public Property Context As EditingContext

Dim instance As DesignerView
Dim value As EditingContext

value = instance.Context

instance.Context = value
public EditingContext Context { get; set; }
public:
property EditingContext^ Context {
    EditingContext^ get ();
    void set (EditingContext^ value);
}
public function get Context () : EditingContext
public function set Context (value : EditingContext)

屬性值

型別:Microsoft.Windows.Design.EditingContext

與這個檢視相關聯的 EditingContext

備註

編輯內容一次只可以包含一個與其相關聯的設計工具檢視。當設計工具檢視中的內容已經設定時,這個檢視就會將本身儲存於內容中。您必須先清除現有的檢視,才能在內容中設定新的檢視。

使用權限

請參閱

參考

DesignerView 類別

DesignerView 成員

Microsoft.Windows.Design.Interaction 命名空間

AdornerPanel

其他資源

逐步解說:建立設計階段裝飾項

裝飾項架構