共用方式為


DesignerView.Context 屬性

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

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

語法

'宣告
Public Property Context As EditingContext
    Get
    Set
public EditingContext Context { get; set; }
public:
property EditingContext^ Context {
    EditingContext^ get ();
    void set (EditingContext^ value);
}
member Context : EditingContext with get, set
function get Context () : EditingContext
function set Context (value : EditingContext)

屬性值

型別:Microsoft.Windows.Design.EditingContext
與這個檢視相關聯的 EditingContext

備註

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

.NET Framework 安全性

請參閱

參考

DesignerView 類別

Microsoft.Windows.Design.Interaction 命名空間

AdornerPanel

其他資源

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

裝飾項架構