ICompletionSession Interface
Represents a statement completion session, which is a type of IntelliSense session.
Namespace: Microsoft.VisualStudio.Language.Intellisense
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
Syntax
'宣告
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
The ICompletionSession type exposes the following members.
Properties
Name | Description | |
---|---|---|
CompletionSets | Gets the collection of CompletionSet objects. | |
IsDismissed | Determines whether the session is dismissed. (Inherited from IIntellisenseSession.) | |
IsStarted | Determines whether the completion session has been started. | |
Presenter | Gets the IIntellisensePresenter that is used to render IntelliSense for this session. (Inherited from IIntellisenseSession.) | |
Properties | Gets the collection of properties controlled by the property owner. (Inherited from IPropertyOwner.) | |
SelectedCompletionSet | Gets or sets the selected CompletionSet. | |
TextView | Gets the ITextView in which this IntelliSense session was triggered. (Inherited from IIntellisenseSession.) |
Top
Methods
Name | Description | |
---|---|---|
Collapse | Reduces the session to a minimized state. If the session has no such state, the session will be dismissed. (Inherited from IIntellisenseSession.) | |
Commit | Commits a completion session. The selected completion's insertion text is inserted into the buffer in the place of its applicability span. | |
Dismiss | Dismisses the session, causing the presenter to be destroyed and the session to be removed from the session stack. (Inherited from IIntellisenseSession.) | |
Filter | Filters the session's completion items, based on the current state of the text buffer. | |
GetTriggerPoint(ITextBuffer) | Gets the ITrackingPoint at which this IntelliSense session was triggered for the specified ITextBuffer. (Inherited from IIntellisenseSession.) | |
GetTriggerPoint(ITextSnapshot) | Gets the SnapshotPoint at which this IntelliSense session was triggered in terms of the specified ITextSnapshot. (Inherited from IIntellisenseSession.) | |
Match | Determines the best matching item in the session and sets the selection to this item. (Inherited from IIntellisenseSession.) | |
Recalculate | Recalculates the underlying IntelliSense items pertaining to this session, using the same trigger point. (Inherited from IIntellisenseSession.) | |
Start | Starts the session. (Inherited from IIntellisenseSession.) |
Top
Events
Name | Description | |
---|---|---|
Committed | Raised after a completion session is committed. | |
Dismissed | Occurs when the session is dismissed. (Inherited from IIntellisenseSession.) | |
PresenterChanged | Occurs when the IntelliSense presenter for this session changes. (Inherited from IIntellisenseSession.) | |
Recalculated | Occurs when the session is recalculated. (Inherited from IIntellisenseSession.) | |
SelectedCompletionSetChanged | Raised when the SelectedCompletionSet property changes. |
Top
Examples
For an example of this interface, see Walkthrough: Displaying Statement Completion.