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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.Interaction 命名空間