IIntellisenseSession.GetTriggerPoint Method

Definition

Overloads

GetTriggerPoint(ITextBuffer)

Gets the ITrackingPoint at which this IntelliSense session was triggered in terms of the specified ITextBuffer.

GetTriggerPoint(ITextSnapshot)

Gets the SnapshotPoint at which this IntelliSense session was triggered in terms of the specified ITextSnapshot.

GetTriggerPoint(ITextBuffer)

Gets the ITrackingPoint at which this IntelliSense session was triggered in terms of the specified ITextBuffer.

public:
 Microsoft::VisualStudio::Text::ITrackingPoint ^ GetTriggerPoint(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public:
 Microsoft::VisualStudio::Text::ITrackingPoint ^ GetTriggerPoint(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
Microsoft::VisualStudio::Text::ITrackingPoint GetTriggerPoint(Microsoft::VisualStudio::Text::ITextBuffer const & textBuffer);
public Microsoft.VisualStudio.Text.ITrackingPoint GetTriggerPoint (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
abstract member GetTriggerPoint : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.ITrackingPoint
Public Function GetTriggerPoint (textBuffer As ITextBuffer) As ITrackingPoint

Parameters

textBuffer
ITextBuffer

The ITextBuffer for which a trigger point should be returned.

Returns

The trigger point of the session as a ITrackingSpan in terms of the specified ITextBuffer.

Remarks

Callers should take care to pass only ITextBuffers that are part of the session.TextView.BufferGraph

Applies to

GetTriggerPoint(ITextSnapshot)

Gets the SnapshotPoint at which this IntelliSense session was triggered in terms of the specified ITextSnapshot.

public:
 Nullable<Microsoft::VisualStudio::Text::SnapshotPoint> GetTriggerPoint(Microsoft::VisualStudio::Text::ITextSnapshot ^ textSnapshot);
public Microsoft.VisualStudio.Text.SnapshotPoint? GetTriggerPoint (Microsoft.VisualStudio.Text.ITextSnapshot textSnapshot);
abstract member GetTriggerPoint : Microsoft.VisualStudio.Text.ITextSnapshot -> Nullable<Microsoft.VisualStudio.Text.SnapshotPoint>
Public Function GetTriggerPoint (textSnapshot As ITextSnapshot) As Nullable(Of SnapshotPoint)

Parameters

textSnapshot
ITextSnapshot

The ITextSnapshot for which a trigger point should be returned.

Returns

The trigger point of the session as a SnapshotPoint in terms of the specified ITextSnapshot.

Remarks

Callers should take care to pass only ITextSnapshots that are part of the session.TextView.BufferGraph

Applies to