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 get/set命令处理程序
公共属性 Content 被重写的get/set 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容器帧

页首

方法

  名称 说明
公共方法 ClearSearch (继承自 ToolWindowPane。)
公共方法 Close 关闭该工具窗口。
公共方法 CreateSearch (继承自 ToolWindowPane。)
公共方法 Dispose() (继承自 WindowPane。)
受保护的方法 Dispose(Boolean) (重写 WindowPane.Dispose(Boolean)。)
受保护的方法 DisposeCleanup 配置元素
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetIVsWindowPane (继承自 ToolWindowPane。)
受保护的方法 GetService (继承自 WindowPane。)
受保护的方法 GetToolWindowAttribute 获取此工具窗口的包ProvideToolWindowAttribute。
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 Initialize (继承自 WindowPane。)
受保护的方法 InitializeProxyControl 设置工具窗口代理控件
公共方法 InitializeView 发送构造初始化。 注意:,因为VSIP在工具窗口实例化时,需要IWin32Window在构造函数必须创建视图。
受保护的方法 IOleCommandTargetExec
受保护的方法 IOleCommandTargetQueryStatus
公共方法 LoadUIState (继承自 WindowPane。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 OnClose() (继承自 WindowPane。)
公共方法 OnClose(UInt32%)
受保护的方法 OnCloseCleanup
受保护的方法 OnCreate (继承自 WindowPane。)
公共方法 OnDockableChange
公共方法 OnMove
公共方法 OnNavigationKeyDown (继承自 ToolWindowPane。)
公共方法 OnShow
公共方法 OnSize
公共方法 OnToolBarAdded (继承自 ToolWindowPane。)
公共方法 OnToolWindowCreated OnToolWindowCreated事件处理程序。这是键绑定将挂钩的位置。 (重写 ToolWindowPane.OnToolWindowCreated()。)
受保护的方法 PreProcessMessage (继承自 WindowPane。)
公共方法 ProvideSearchSettings (继承自 ToolWindowPane。)
公共方法 SaveUIState (继承自 WindowPane。)
受保护的方法 SetFocus 将焦点设置视图控件
受保护的方法 SetUserContext 将此工具窗口中的帮助主题。
受保护的方法 SetUserSubContext 设置特定上下文的帮助主题此工具窗口的。此帮助主题与泛型工具窗口帮助主题高的优先级。
公共方法 Show 显示此工具窗口。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 UpdateCaption 更新工具窗口和可视化工具标题的说明

页首

事件

  名称 说明
公共事件 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。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.VisualStudio.TeamFoundation 命名空间