Condividi tramite


ITrackingPoint Interface

A tracking position in an ITextBuffer.

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

Syntax

'Dichiarazione
Public Interface ITrackingPoint
public interface ITrackingPoint
public interface class ITrackingPoint
type ITrackingPoint =  interface end
public interface ITrackingPoint

The ITrackingPoint type exposes the following members.

Properties

  Name Description
Public property TextBuffer Gets the ITextBuffer to which this point refers.
Public property TrackingFidelity Determines 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 property TrackingMode Determines whether the tracking point shifts or remains stationary when insertions occur at its position.

Top

Methods

  Name Description
Public method GetCharacter Maps this tracking point to the specified snapshot and gets the character at that position.
Public method GetPoint Maps the tracking point to a particular snapshot of its ITextBuffer.
Public method GetPosition(ITextSnapshot) Gets the position of the tracking point in the specified ITextSnapshot.
Public method GetPosition(ITextVersion) Gets the position of the tracking point in the specified ITextVersion.

Top

Remarks

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

See Also

Reference

Microsoft.VisualStudio.Text Namespace