Dela via


TrackingRange Struct

Definition

RPC contract for a Range with an associated TextRangeTrackingMode.

[System.Runtime.Serialization.DataContract]
public struct TrackingRange : IEquatable<Microsoft.VisualStudio.RpcContracts.Editor.TrackingRange>
[<System.Runtime.Serialization.DataContract>]
type TrackingRange = struct
Public Structure TrackingRange
Implements IEquatable(Of TrackingRange)
Inheritance
TrackingRange
Attributes
Implements

Constructors

TrackingRange(Int32, Int32, TextRangeTrackingMode)

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

TrackingRange(OffsetRange, TextRangeTrackingMode)

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

Properties

End

Gets the ending index of the range.

Length

Gets the length of the range.

Range

Gets the range.

Start

Gets the starting index of the range.

TrackingMode

Gets the tracking mode of the range.

Methods

Equals(Object)

Indicates whether this instance and a specified object are equal.

Equals(TrackingRange)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Returns the hash code for this instance.

ToTrackingTextRange(ITextDocumentSnapshot)

Allows conversion to a TrackingTextRange.

Translate(ITextDocumentSnapshot, ITextDocumentSnapshot)

Translates this TrackingRange to an older or newer ITextDocumentSnapshot version.

Operators

Implicit(TrackingTextRange to TrackingRange)

Allows implicit conversion from a TrackingTextRange.

Applies to