定义快速信息代理。
命名空间: Microsoft.VisualStudio.Language.Intellisense
程序集: Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
语法
声明
Public Interface IQuickInfoBroker
public interface IQuickInfoBroker
public interface class IQuickInfoBroker
type IQuickInfoBroker = interface end
public interface IQuickInfoBroker
IQuickInfoBroker 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
CreateQuickInfoSession | 在 ITextBuffer 中的指定位置创建但不启动快速信息会话。 |
![]() |
GetSessions | 获取此代理运行所在的 ITextView 的活动快速信息会话的集合。 |
![]() |
IsQuickInfoActive | 确定在指定的 ITextView 中是否至少有一个活动的快速信息会话。 |
![]() |
TriggerQuickInfo(ITextView) | 在指定的 ITextView 中的插入符号位置触发快速信息。 |
![]() |
TriggerQuickInfo(ITextView, ITrackingPoint, Boolean) | 在缓冲区中的指定位置触发快速信息,跟踪或不跟踪鼠标。 |
页首
备注
该代理将触发快速信息会话负责。 应将其导入如下所示:
[Import]
internal IQuickInfoBroker QuickInfoBroker { get; set; }
示例
有关使用的示例此接口,请参见 演练:显示以前的工具提示。