IVsCodeDefViewContext 接口

设置显示的代码定义工具窗口上下文。上下文包括诸如文件名和行号和列号。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.8.0(在 Microsoft.VisualStudio.Shell.Interop.8.0.dll 中)

语法

声明
<GuidAttribute("E7070F9A-502F-4454-B4A2-FE261C568C37")> _
<InterfaceTypeAttribute()> _
Public Interface IVsCodeDefViewContext
[GuidAttribute("E7070F9A-502F-4454-B4A2-FE261C568C37")]
[InterfaceTypeAttribute()]
public interface IVsCodeDefViewContext

IVsCodeDefViewContext 类型公开以下成员。

方法

  名称 说明
公共方法 GetCol 检索基于索引的项的列位置。上下文项列表。
公共方法 GetCount 返回上下文项的计数。
公共方法 GetFileName 检索基于其在上下文项列表的索引项的文件。
公共方法 GetLine 检索基于索引的项目的行位置。上下文项列表。
公共方法 GetSymbolName 检索基于其在上下文项列表的索引的项目的符号名称。

页首

备注

通过调用此接口的方法来通过接口填充上下文值设置为 IVsCodeDefView 接口的 SetContext 方法。

请参见

参考

Microsoft.VisualStudio.Shell.Interop 命名空间