次の方法で共有


IIntellisenseSession Interface

Represents an IntelliSense session, or a single instance of the IntelliSense process.

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

'宣言
Public Interface IIntellisenseSession _
    Inherits IPropertyOwner
public interface IIntellisenseSession : IPropertyOwner
public interface class IIntellisenseSession : IPropertyOwner
type IIntellisenseSession =  
    interface
        interface IPropertyOwner
    end
public interface IIntellisenseSession extends IPropertyOwner

The IIntellisenseSession type exposes the following members.

Properties

  Name Description
Public property IsDismissed Determines whether the session is dismissed.
Public property Presenter Gets the IIntellisensePresenter that is used to render IntelliSense for this session.
Public property Properties Gets the collection of properties controlled by the property owner. (Inherited from IPropertyOwner.)
Public property TextView Gets the ITextView in which this IntelliSense session was triggered.

Top

Methods

  Name Description
Public method Collapse Reduces the session to a minimized state. If the session has no such state, the session will be dismissed.
Public method Dismiss Dismisses the session, causing the presenter to be destroyed and the session to be removed from the session stack.
Public method GetTriggerPoint(ITextBuffer) Gets the ITrackingPoint at which this IntelliSense session was triggered for the specified ITextBuffer.
Public method GetTriggerPoint(ITextSnapshot) Gets the SnapshotPoint at which this IntelliSense session was triggered in terms of the specified ITextSnapshot.
Public method Match Determines the best matching item in the session and sets the selection to this item.
Public method Recalculate Recalculates the underlying IntelliSense items pertaining to this session, using the same trigger point.
Public method Start Starts the session.

Top

Events

  Name Description
Public event Dismissed Occurs when the session is dismissed.
Public event PresenterChanged Occurs when the IntelliSense presenter for this session changes.
Public event Recalculated Occurs when the session is recalculated.

Top

Remarks

A session is returned by each IntelliSense triggering operation, and can be used to control the process of IntelliSense operations. IntelliSense sessions are aggregated into a stack, managed by an IIntellisenseSessionStack instance.

The interfaces ICompletionSession, IQuickInfoSession, ISignatureHelpSession, and ISmartTagSession implement this interface.

For more information about IntelliSense, see Editor Extension Points.

See Also

Reference

Microsoft.VisualStudio.Language.Intellisense Namespace