TagVersionRange<T> Class
Implements an object that represents an ITag and its associated ITextVersionRange.
public class TagVersionRange<T> where T : ITag
- Type Parameters:
-
T-The type of tag associated with this range.
- Inheritance:
- object object
Constructors
TagVersionRange(ITextVersionRange, T)
Implements an object that represents an ITag and its associated ITextVersionRange.
public TagVersionRange(ITextVersionRange versionRange, T tag)
| Parameter | Type | Description |
|---|---|---|
| versionRange | ITextVersionRange | The ITextVersionRange over which the Tag applies. |
| tag | T | The ITag data object associated with this range. |
TagVersionRange(TextSnapshotRange, TextRangeTrackingModes, T)
Initializes an instance of the class.
public TagVersionRange(TextSnapshotRange snapshotRange, TextRangeTrackingModes trackingModes, T tag)
| Parameter | Type | Description |
|---|---|---|
| snapshotRange | TextSnapshotRange | The TextSnapshotRange over which the Tag applies. |
| trackingModes | TextRangeTrackingModes | A TextRangeTrackingModes indicating the tracking modes to use. |
| tag | T | The ITag data object associated with this range. |
Properties
Tag
The ITag data object associated with this range.
public T Tag { get; }
Property Value
- T
VersionRange
The ITextVersionRange over which the Tag applies.
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
| Parameter | Type | Description |
|---|---|---|
| obj | object | The object to compare with the current object. |
Returns
- bool:
trueif the specified object is equal to the current object; otherwise,false.
GetHashCode()
Serves as the default hash function.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)