TaggedTrackingRange<T> 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.
RPC contract for a TrackingRange with an associated tag.
[System.Runtime.Serialization.DataContract]
public struct TaggedTrackingRange<T> : IEquatable<Microsoft.VisualStudio.RpcContracts.Editor.TaggedTrackingRange<T>> where T : ITagContract, IEquatable<T>
[<System.Runtime.Serialization.DataContract>]
type TaggedTrackingRange<'T (requires 'T :> ITagContract and 'T :> IEquatable<'T>)> = struct
Public Structure TaggedTrackingRange(Of T)
Implements IEquatable(Of TaggedTrackingRange(Of T))
Type Parameters
- T
The type of the tag.
- Inheritance
-
TaggedTrackingRange<T>
- Attributes
- Implements
Constructors
TaggedTrackingRange<T>(Int32, Int32, TextRangeTrackingMode, T) |
Initializes a new instance of a TaggedTrackingRange<T> with the specified start point, length, tracking mode and tag. |
TaggedTrackingRange<T>(OffsetRange, TextRangeTrackingMode, T) |
Initializes a new instance of a TaggedTrackingRange<T> with the specified range, tracking mode and tag. |
TaggedTrackingRange<T>(TrackingRange, T) |
Initializes a new instance of a TaggedTrackingRange<T> with the specified tracking range and tag. |
Properties
End |
Gets the ending index of the range. |
Length |
Gets the length of the range. |
Range |
Gets the tracking range. |
Start |
Gets the starting index of the range. |
Tag |
Gets the tag. |
TrackingMode |
Gets the tracking mode of the range. |
Methods
Equals(Object) | Indicates whether this instance and a specified object are equal. |
Equals(TaggedTrackingRange<T>) | Indicates whether the current object is equal to another object of the same type. |
GetHashCode() | Returns the hash code for this instance. |
Translate(ITextDocumentSnapshot, ITextDocumentSnapshot) |
Translates this TaggedTrackingRange<T> to an older or newer ITextDocumentSnapshot version. |