Aracılığıyla paylaş


ITextSnapshot.CreateTrackingPoint Method

Definition

Overloads

CreateTrackingPoint(Int32, PointTrackingMode)

Creates a ITrackingPoint against this snapshot.

CreateTrackingPoint(Int32, PointTrackingMode, TrackingFidelityMode)

Creates a ITrackingPoint against this snapshot.

CreateTrackingPoint(Int32, PointTrackingMode)

Creates a ITrackingPoint against this snapshot.

public:
 Microsoft::VisualStudio::Text::ITrackingPoint ^ CreateTrackingPoint(int position, Microsoft::VisualStudio::Text::PointTrackingMode trackingMode);
public:
 Microsoft::VisualStudio::Text::ITrackingPoint ^ CreateTrackingPoint(int position, Microsoft::VisualStudio::Text::PointTrackingMode trackingMode);
Microsoft::VisualStudio::Text::ITrackingPoint CreateTrackingPoint(int position, Microsoft::VisualStudio::Text::PointTrackingMode trackingMode);
public Microsoft.VisualStudio.Text.ITrackingPoint CreateTrackingPoint (int position, Microsoft.VisualStudio.Text.PointTrackingMode trackingMode);
abstract member CreateTrackingPoint : int * Microsoft.VisualStudio.Text.PointTrackingMode -> Microsoft.VisualStudio.Text.ITrackingPoint
Public Function CreateTrackingPoint (position As Integer, trackingMode As PointTrackingMode) As ITrackingPoint

Parameters

position
Int32

The position of the point.

trackingMode
PointTrackingMode

The tracking mode of the point.

Returns

A non-null TrackingPoint.

Exceptions

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

Applies to

CreateTrackingPoint(Int32, PointTrackingMode, TrackingFidelityMode)

Creates a ITrackingPoint against this snapshot.

public:
 Microsoft::VisualStudio::Text::ITrackingPoint ^ CreateTrackingPoint(int position, Microsoft::VisualStudio::Text::PointTrackingMode trackingMode, Microsoft::VisualStudio::Text::TrackingFidelityMode trackingFidelity);
public:
 Microsoft::VisualStudio::Text::ITrackingPoint ^ CreateTrackingPoint(int position, Microsoft::VisualStudio::Text::PointTrackingMode trackingMode, Microsoft::VisualStudio::Text::TrackingFidelityMode trackingFidelity);
Microsoft::VisualStudio::Text::ITrackingPoint CreateTrackingPoint(int position, Microsoft::VisualStudio::Text::PointTrackingMode trackingMode, Microsoft::VisualStudio::Text::TrackingFidelityMode trackingFidelity);
public Microsoft.VisualStudio.Text.ITrackingPoint CreateTrackingPoint (int position, Microsoft.VisualStudio.Text.PointTrackingMode trackingMode, Microsoft.VisualStudio.Text.TrackingFidelityMode trackingFidelity);
abstract member CreateTrackingPoint : int * Microsoft.VisualStudio.Text.PointTrackingMode * Microsoft.VisualStudio.Text.TrackingFidelityMode -> Microsoft.VisualStudio.Text.ITrackingPoint
Public Function CreateTrackingPoint (position As Integer, trackingMode As PointTrackingMode, trackingFidelity As TrackingFidelityMode) As ITrackingPoint

Parameters

position
Int32

The position of the point.

trackingMode
PointTrackingMode

The tracking mode of the point.

trackingFidelity
TrackingFidelityMode

The tracking fidelity of the point.

Returns

A non-null TrackingPoint.

Exceptions

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

Remarks

This text point reprises its previous position when visiting a version that was created by undo or redo.

Applies to