TrackingTextRange Struct

Definition

A TextRange with an associated TextRangeTrackingMode.

C#
[System.Runtime.Serialization.DataContract]
public struct TrackingTextRange
Inheritance
TrackingTextRange
Attributes

Constructors

TrackingTextRange(ITextDocumentSnapshot, Int32, Int32, TextRangeTrackingMode)

Initializes a new instance of a TrackingTextRange with the specified start point, length and tracking mode.

TrackingTextRange(TextPosition, Int32, TextRangeTrackingMode)

Initializes a new instance of a TrackingTextRange with the specified start point, length and tracking mode.

TrackingTextRange(TextPosition, TextPosition, TextRangeTrackingMode)

Initializes a new instance of a TrackingTextRange with the specified start point, end point and tracking mode.

TrackingTextRange(TextRange, TextRangeTrackingMode)

Initializes a new instance of a TrackingTextRange with the specified range and tracking mode.

Properties

End

Gets the end of the snapshot range. The range is open-ended on the right side, which is to say that Start + Length = End.

Length

Gets the length of the range, which is always non-negative.

Range

Gets the range.

Start

Gets the starting index of the snapshot range.

TrackingMode

Gets the tracking mode.

Methods

TranslateTo(ITextDocumentSnapshot)

Translates this TrackingTextRange to an older or newer ITextDocumentSnapshot version.

Applies to

Produkt Wersje
Visual Studio SDK 2022