ToolWindowBase 類別
這個類別會實作 Team Foundation基本的工具視窗。
在 Visual Studio 工具視窗所組成的框架 (實作由 Shell) 和 窗格,通常實作是由封裝實作。
這個類別是從 MPF 提供的 ToolWindowPane 類別衍生才能使用其 IVsWindowPane 介面的實作。
繼承階層架構
System.Object
Microsoft.VisualStudio.Shell.WindowPane
Microsoft.VisualStudio.Shell.ToolWindowPane
Microsoft.VisualStudio.TeamFoundation.ToolWindowBase
命名空間: Microsoft.VisualStudio.TeamFoundation
組件: Microsoft.VisualStudio.TeamFoundation (在 Microsoft.VisualStudio.TeamFoundation.dll 中)
語法
'宣告
Public MustInherit Class ToolWindowBase _
Inherits ToolWindowPane _
Implements IOleCommandTarget, IVsWindowFrameNotify, IVsWindowFrameNotify2
public abstract class ToolWindowBase : ToolWindowPane,
IOleCommandTarget, IVsWindowFrameNotify, IVsWindowFrameNotify2
ToolWindowBase 型別會公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
![]() |
ToolWindowBase | 工具視窗的標準建構函式。 |
回頁首
屬性
名稱 | 說明 | |
---|---|---|
![]() |
BitmapIndex | (繼承自 ToolWindowPane)。 |
![]() |
BitmapResourceID | (繼承自 ToolWindowPane)。 |
![]() |
Caption | (繼承自 ToolWindowPane)。 |
![]() |
CommandHandler | 取得或設定命令處理常式 |
![]() |
Content | 覆寫的取得/設定 WPF 內容 (覆寫 WindowPane.Content。) |
![]() |
Frame | (繼承自 ToolWindowPane)。 |
![]() |
HelpTopic | 取得說明主題 |
![]() |
InitializationMode | (繼承自 WindowPane)。 |
![]() |
IsMultiInstance | 如果這是多個執行個體的工具視窗,則傳回 true。 |
![]() |
IsOnScreen | 為 True,如果 toolwindow 來檢視可在螢幕上並不是滑下螢幕 (ie。) 自動投影片,就不會再由另一個索引標籤式文件或關閉的。這與不考慮為的 toolwindow 滑下螢幕或索引標籤式文件會受到阻礙的 IsVisible 不同 (ie。在上方) 有另一個。 |
![]() |
IsTransient | 如果這是一個暫時性工具視窗,則傳回 true。 |
![]() |
Package | (繼承自 ToolWindowPane)。 |
![]() |
SearchCategory | (繼承自 ToolWindowPane)。 |
![]() |
SearchEnabled | (繼承自 ToolWindowPane)。 |
![]() |
SearchFiltersEnum | (繼承自 ToolWindowPane)。 |
![]() |
SearchHost | (繼承自 ToolWindowPane)。 |
![]() |
SearchOptionsEnum | (繼承自 ToolWindowPane)。 |
![]() |
ServiceProvider | 取得 IOleServiceProvider 介面。 |
![]() |
ToolBar | (繼承自 ToolWindowPane)。 |
![]() |
ToolBarCommandTarget | (繼承自 ToolWindowPane)。 |
![]() |
ToolBarDropTarget | (繼承自 ToolWindowPane)。 |
![]() |
ToolBarLocation | (繼承自 ToolWindowPane)。 |
![]() |
ToolClsid | (繼承自 ToolWindowPane)。 |
![]() |
Window | (繼承自 WindowPane)。 |
![]() |
WindowFrame | Toolwindow 容器框架 |
回頁首
方法
回頁首
事件
名稱 | 說明 | |
---|---|---|
![]() |
ToolWindowClosing | 引發事件,當工具視窗將會關閉。 |
回頁首
明確介面實作
名稱 | 說明 | |
---|---|---|
![]() ![]() |
IOleCommandTarget.Exec | |
![]() ![]() |
IOleCommandTarget.QueryStatus | |
![]() ![]() |
IVsWindowSearch.Category | (繼承自 ToolWindowPane)。 |
![]() ![]() |
IVsWindowPane.ClosePane | 已過時。 (繼承自 WindowPane)。 |
![]() ![]() |
IVsUIElementPane.CloseUIElementPane | (繼承自 WindowPane)。 |
![]() ![]() |
IVsWindowPane.CreatePaneWindow | 已過時。 (繼承自 WindowPane)。 |
![]() ![]() |
IVsUIElementPane.CreateUIElementPane | (繼承自 WindowPane)。 |
![]() ![]() |
IVsWindowPane.GetDefaultSize | 已過時。 (繼承自 WindowPane)。 |
![]() ![]() |
IVsUIElementPane.GetDefaultUIElementSize | (繼承自 WindowPane)。 |
![]() ![]() |
IServiceProvider.GetService | (繼承自 WindowPane)。 |
![]() ![]() |
IVsUIElementPane.LoadUIElementState | (繼承自 WindowPane)。 |
![]() ![]() |
IVsWindowPane.LoadViewState | 已過時。 (繼承自 WindowPane)。 |
![]() ![]() |
IVsUIElementPane.SaveUIElementState | (繼承自 WindowPane)。 |
![]() ![]() |
IVsWindowPane.SaveViewState | 已過時。 (繼承自 WindowPane)。 |
![]() ![]() |
IVsWindowPane.SetSite | 已過時。 (繼承自 WindowPane)。 |
![]() ![]() |
IVsUIElementPane.SetUIElementSite | (繼承自 WindowPane)。 |
![]() ![]() |
IVsWindowPane.TranslateAccelerator | 已過時。 (繼承自 WindowPane)。 |
![]() ![]() |
IVsUIElementPane.TranslateUIElementAccelerator | (繼承自 WindowPane)。 |
回頁首
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。