ITextVersion::CreateTrackingPoint Method (Int32, PointTrackingMode, TrackingFidelityMode)
Visual Studio 2015
Creates a ITrackingPoint in this version.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
ITrackingPoint^ CreateTrackingPoint(
int position,
PointTrackingMode trackingMode,
TrackingFidelityMode trackingFidelity
)
Parameters
- position
-
Type:
System::Int32
The position of the point.
- trackingMode
-
Type:
Microsoft.VisualStudio.Text::PointTrackingMode
The tracking mode of the point.
- trackingFidelity
-
Type:
Microsoft.VisualStudio.Text::TrackingFidelityMode
The tracking fidelity of the point.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | position is less than zero or greater than the length of the snapshot. |
This text point returns to its previous position when based on a version that was created by undo or redo.
Show: