TrackingTextRange Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A TextRange with an associated TextRangeTrackingMode.
[System.Runtime.Serialization.DataContract]
public struct TrackingTextRange
[<System.Runtime.Serialization.DataContract>]
type TrackingTextRange = struct
Public Structure 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. |