定义一个智能标记会话,其中封装了有关智能标记系统的特定调用的所有信息。
命名空间: Microsoft.VisualStudio.Language.Intellisense
程序集: Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
语法
声明
Public Interface ISmartTagSession _
Inherits IIntellisenseSession, IPropertyOwner
public interface ISmartTagSession : IIntellisenseSession,
IPropertyOwner
public interface class ISmartTagSession : IIntellisenseSession,
IPropertyOwner
type ISmartTagSession =
interface
interface IIntellisenseSession
interface IPropertyOwner
end
public interface ISmartTagSession extends IIntellisenseSession, IPropertyOwner
ISmartTagSession 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
ActionSets | 获取此会话显示的操作的集合。 |
![]() |
ApplicableToSpan | 获取或设置此会话在文本缓冲区中适用的范围。它用于定位智能标记呈现器所呈现的所有弹出菜单。 |
![]() |
IconSource | 获取或设置可在会话显示的图标。 |
![]() |
IsDismissed | 确定会话是否已关闭。 (继承自 IIntellisenseSession。) |
![]() |
Presenter | 获取用于为会话呈现 IntelliSense 的 IIntellisensePresenter。 (继承自 IIntellisenseSession。) |
![]() |
Properties | 获取属性所有者控制的属性集合。 (继承自 IPropertyOwner。) |
![]() |
State | 获取或设置此会话的当前状态。 |
![]() |
TagSpan | 应呈现的标记范围。 |
![]() |
TagText | 获取或设置随标记显示的文本。 |
![]() |
TextView | 获取其中触发此 IntelliSense 会话的 ITextView 。 (继承自 IIntellisenseSession。) |
![]() |
Type | 智能标记会话的类型。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Collapse | 使该会话减少到一个最小化状态的。如果会话没有这样的状态,则会议将关闭。 (继承自 IIntellisenseSession。) |
![]() |
Dismiss | 关闭会话,从而销毁相应呈现器,并从会话堆栈中移除该会话。 (继承自 IIntellisenseSession。) |
![]() |
GetTriggerPoint(ITextBuffer) | 获取此 IntelliSense 会话指定的 ITextBuffer触发的 ITrackingPoint 。 (继承自 IIntellisenseSession。) |
![]() |
GetTriggerPoint(ITextSnapshot) | 获取在指定的 ITextSnapshot 中触发此 IntelliSense 会话时所在的 SnapshotPoint。 (继承自 IIntellisenseSession。) |
![]() |
Match | 确定会话中的最佳匹配项并选择此项。 (继承自 IIntellisenseSession。) |
![]() |
Recalculate | 使用同一触发点重新计算属于此会话的基础 IntelliSense 项。 (继承自 IIntellisenseSession。) |
![]() |
Start | 启动会话。 (继承自 IIntellisenseSession。) |
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
ApplicableToSpanChanged | 当 ApplicableToSpan 属性更改时发生。 |
![]() |
Dismissed | 在关闭会话时发生。 (继承自 IIntellisenseSession。) |
![]() |
IconSourceChanged | ,当会话的图标更改时,发生。 |
![]() |
PresenterChanged | 在会话的 IntelliSense 呈现器更改时发生。 (继承自 IIntellisenseSession。) |
![]() |
Recalculated | ,在该会话重新计算,发生。 (继承自 IIntellisenseSession。) |
![]() |
StateChanged | ,在会话状态发生更改, |
![]() |
TagSpanChanged | 当 TagSpan 属性更改时发生。 |
页首
示例
有关使用的示例此接口,请参见 演练:显示 SmartTags。