Partager via


ITextVersion.CreateTrackingPoint Method (Int32, PointTrackingMode, TrackingFidelityMode)

Creates a ITrackingPoint in this version.

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

Syntax

'Declaration
Function CreateTrackingPoint ( _
    position As Integer, _
    trackingMode As PointTrackingMode, _
    trackingFidelity As TrackingFidelityMode _
) As ITrackingPoint
ITrackingPoint CreateTrackingPoint(
    int position,
    PointTrackingMode trackingMode,
    TrackingFidelityMode trackingFidelity
)
ITrackingPoint^ CreateTrackingPoint(
    int position, 
    PointTrackingMode trackingMode, 
    TrackingFidelityMode trackingFidelity
)
abstract CreateTrackingPoint : 
        position:int * 
        trackingMode:PointTrackingMode * 
        trackingFidelity:TrackingFidelityMode -> ITrackingPoint
function CreateTrackingPoint(
    position : int, 
    trackingMode : PointTrackingMode, 
    trackingFidelity : TrackingFidelityMode
) : ITrackingPoint

Parameters

  • position
    Type: Int32

    The position of the point.

Return Value

Type: Microsoft.VisualStudio.Text.ITrackingPoint
A non-null ITrackingPoint.

Exceptions

Exception Condition
ArgumentOutOfRangeException

position is less than zero or greater than the length of the snapshot.

Remarks

This text point returns to its previous position when based on a version that was created by undo or redo.

.NET Framework Security

See Also

Reference

ITextVersion Interface

CreateTrackingPoint Overload

Microsoft.VisualStudio.Text Namespace