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:
- System.Object Object
Constructors
TagVersionRange(ITextVersionRange, T)
Initializes a new instance of the TagVersionRange
class.
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 a new instance of the TagVersionRange
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
Gets the ITag data object associated with this range.
VersionRange
Gets the ITextVersionRange over which the Tag applies.
public ITextVersionRange VersionRange { get; }
Property Value
- ITextVersionRange:
The ITextVersionRange over which the Tag applies.
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
public override bool Equals(object obj)
Parameter | Type | Description |
---|---|---|
obj | System.Object | The System.Object to compare with the current System.Object. |
Returns
- System.Boolean:
true if the specified System.Object is equal to the current System.Object; otherwise, false.
Exceptions
Type | Condition |
---|---|
System.NullReferenceException | The |
GetHashCode()
Serves as a hash function for a particular type.
public override int GetHashCode()
Returns
- System.Int32:
A hash code for the current System.Object.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetType()
- System.Object.MemberwiseClone()