Поделиться через


ITrackingSpan Interface

A span of text in an ITextBuffer that grows or shrinks with changes to the text buffer. The span may be empty.

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

Syntax

'Декларация
Public Interface ITrackingSpan
public interface ITrackingSpan
public interface class ITrackingSpan
type ITrackingSpan =  interface end
public interface ITrackingSpan

The ITrackingSpan type exposes the following members.

Properties

  Name Description
Public property TextBuffer The ITextBuffer to which this tracking span refers.
Public property TrackingFidelity The TrackingFidelityMode of the tracking span.
Public property TrackingMode The SoanTrackingMode of this tracking span, which determines how it behaves when insertions occur at its edges.

Top

Methods

  Name Description
Public method GetEndPoint Maps the end of the tracking span to the specified snapshot of its text buffer.
Public method GetSpan(ITextSnapshot) Maps the tracking span to the specified snapshot of its text buffer.
Public method GetSpan(ITextVersion) Maps the tracking span to the specified version of its text buffer.
Public method GetStartPoint Maps the start of the tracking span to the specified snapshot of its text buffer.
Public method GetText Maps the tracking span to the specified snapshot of its text buffer and gets the text it designates.

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