ITextSnapshot.CreateTrackingPoint Method (Int32, PointTrackingMode)

Creates a ITrackingPoint in this snapshot.

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 _
) As ITrackingPoint
ITrackingPoint CreateTrackingPoint(
    int position,
    PointTrackingMode trackingMode
)
ITrackingPoint^ CreateTrackingPoint(
    int position, 
    PointTrackingMode trackingMode
)
abstract CreateTrackingPoint : 
        position:int * 
        trackingMode:PointTrackingMode -> ITrackingPoint
function CreateTrackingPoint(
    position : int, 
    trackingMode : PointTrackingMode
) : ITrackingPoint

Parameters

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.

.NET Framework Security

See Also

Reference

ITextSnapshot Interface

CreateTrackingPoint Overload

Microsoft.VisualStudio.Text Namespace