ICompletionSession 接口

表示语句完成会话,是 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 属性更改时引发。

页首

示例

有关此接口的示例,请参见 演练:显示的语句完成

请参阅

参考

Microsoft.VisualStudio.Language.Intellisense 命名空间