We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

ITrackingPoint Interface

A tracking position in an ITextBuffer.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

public interface ITrackingPoint

The ITrackingPoint type exposes the following members.

Public propertyTextBufferGets the ITextBuffer to which this point refers.
Public propertyTrackingFidelityDetermines how the tracking point behaves when moving to a previous version or when encountering versions that are replications of previous versions (due to undo or redo).
Public propertyTrackingModeDetermines whether the tracking point shifts or remains stationary when insertions occur at its position.

Public methodGetCharacterMaps this tracking point to the specified snapshot and gets the character at that position.
Public methodGetPointMaps the tracking point to a particular snapshot of its ITextBuffer.
Public methodGetPosition(ITextSnapshot)Gets the position of the tracking point in the specified ITextSnapshot.
Public methodGetPosition(ITextVersion)Gets the position of the tracking point in the specified ITextVersion.

For information about tracking, see the "Tracking Points and Tracking Spans" section of Inside the Editor.