內容項目,用於儲存和報告正在編輯內容中使用的目前設計工具檢視。
繼承階層架構
System.Object
Microsoft.Windows.Design.ContextItem
Microsoft.Windows.Design.Interaction.CurrentDesignerView
命名空間: Microsoft.Windows.Design.Interaction
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public NotInheritable Class CurrentDesignerView _
Inherits ContextItem
public sealed class CurrentDesignerView : ContextItem
public ref class CurrentDesignerView sealed : public ContextItem
[<Sealed>]
type CurrentDesignerView =
class
inherit ContextItem
end
public final class CurrentDesignerView extends ContextItem
CurrentDesignerView 型別會公開下列成員。
建構函式
| 名稱 | 說明 | |
|---|---|---|
![]() |
CurrentDesignerView | 初始化 CurrentDesignerView 類別的新執行個體。 |
回頁首
屬性
| 名稱 | 說明 | |
|---|---|---|
![]() |
ItemType | 取得這個項目的項目型別。 (覆寫 ContextItem.ItemType。) |
![]() |
View | 取得目前使用的設計工具檢視。 |
回頁首
方法
| 名稱 | 說明 | |
|---|---|---|
![]() |
Equals | 判斷指定的 Object 和目前的 Object 是否相等。 (繼承自 Object)。 |
![]() |
Finalize | 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。 |
![]() |
GetHashCode | 做為特定型別的雜湊函式。 (繼承自 Object)。 |
![]() |
GetType | 取得目前執行個體的 Type。 (繼承自 Object)。 |
![]() |
MemberwiseClone | 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。 |
![]() |
OnItemChanged | 會在內容項目儲存至內容項目管理員之前,先對這個項目來呼叫。 (繼承自 ContextItem)。 |
![]() |
ToString | 傳回表示目前物件的字串。 (繼承自 Object)。 |
回頁首
備註
CurrentDesignerView 由 DesignerView 的 FromContext 方法使用。 DesignerView 會自動將此新增至建構的內容。 您無法變更內容層內的設計工具檢視,但可以建立新的內容層,並將新的檢視加入至該層。
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。
請參閱
參考
Microsoft.Windows.Design.Interaction 命名空間
.gif)
.gif)
.gif)