表示语句完成会话,是 IntelliSense 会话类型。
命名空间: Microsoft.VisualStudio.Language.Intellisense
程序集: Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
语法
声明
Public Interface ICompletionSession _
Inherits IIntellisenseSession, IPropertyOwner
public interface ICompletionSession : IIntellisenseSession,
IPropertyOwner
public interface class ICompletionSession : IIntellisenseSession,
IPropertyOwner
type ICompletionSession =
interface
interface IIntellisenseSession
interface IPropertyOwner
end
public interface ICompletionSession extends IIntellisenseSession, IPropertyOwner
ICompletionSession 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
CompletionSets | 获取 CompletionSet 对象的集合。 |
![]() |
IsDismissed | 确定会话是否已关闭。 (继承自 IIntellisenseSession。) |
![]() |
IsStarted | 确定完成会话是否已启动。 |
![]() |
Presenter | 获取用于为会话呈现 IntelliSense 的 IIntellisensePresenter。 (继承自 IIntellisenseSession。) |
![]() |
Properties | 获取属性所有者控制的属性集合。 (继承自 IPropertyOwner。) |
![]() |
SelectedCompletionSet | 获取或设置选定的 CompletionSet。 |
![]() |
TextView | 获取其中触发此 IntelliSense 会话的 ITextView 。 (继承自 IIntellisenseSession。) |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Collapse | 使该会话减少到一个最小化状态的。如果会话没有这样的状态,则会议将关闭。 (继承自 IIntellisenseSession。) |
![]() |
Commit | 提交完成会话。选定的完成项的插入文本插入到缓冲区中的适用范围位置。 |
![]() |
Dismiss | 关闭会话,从而销毁相应呈现器,并从会话堆栈中移除该会话。 (继承自 IIntellisenseSession。) |
![]() |
Filter | 根据文本缓冲区的当前状态筛选会话的完成项。 |
![]() |
GetTriggerPoint(ITextBuffer) | 获取此 IntelliSense 会话指定的 ITextBuffer触发的 ITrackingPoint 。 (继承自 IIntellisenseSession。) |
![]() |
GetTriggerPoint(ITextSnapshot) | 获取在指定的 ITextSnapshot 中触发此 IntelliSense 会话时所在的 SnapshotPoint。 (继承自 IIntellisenseSession。) |
![]() |
Match | 确定会话中的最佳匹配项并选择此项。 (继承自 IIntellisenseSession。) |
![]() |
Recalculate | 使用同一触发点重新计算属于此会话的基础 IntelliSense 项。 (继承自 IIntellisenseSession。) |
![]() |
Start | 启动会话。 (继承自 IIntellisenseSession。) |
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
Committed | 事件在完成会话以后。 |
![]() |
Dismissed | 在关闭会话时发生。 (继承自 IIntellisenseSession。) |
![]() |
PresenterChanged | 在会话的 IntelliSense 呈现器更改时发生。 (继承自 IIntellisenseSession。) |
![]() |
Recalculated | ,在该会话重新计算,发生。 (继承自 IIntellisenseSession。) |
![]() |
SelectedCompletionSetChanged | 当 SelectedCompletionSet 属性更改时引发。 |
页首
示例
有关此接口的示例,请参见 演练:显示的语句完成。