In This Article

TagSnapshotRange<T> Class

Implements an object that represents an ITag and its associated TextSnapshotRange.

public class TagSnapshotRange<T> where T : ITag
Type Parameters:
T -

The type of tag associated with this range.

Inheritance:
object object

Constructors

TagSnapshotRange(TextSnapshotRange, T)

Implements an object that represents an ITag and its associated TextSnapshotRange.

public TagSnapshotRange(TextSnapshotRange snapshotRange, T tag)
Parameter Type Description
snapshotRange TextSnapshotRange

The TextSnapshotRange over which the Tag applies.

tag T

The ITag data object associated with this range.

Properties

SnapshotRange

The TextSnapshotRange over which the Tag applies.

public TextSnapshotRange SnapshotRange { get; }

Property Value

TextSnapshotRange

Tag

The ITag data object associated with this range.

public T Tag { get; }

Property Value

T

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:

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int:

A hash code for the current object.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods