Share via


NormalizedSpanCollection Class

Definition

A collection of spans that are sorted by start position, with adjacent and overlapping spans combined.

public ref class NormalizedSpanCollection : System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Text::Span>
public class NormalizedSpanCollection : System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Text.Span>
type NormalizedSpanCollection = class
    inherit ReadOnlyCollection<Span>
Public Class NormalizedSpanCollection
Inherits ReadOnlyCollection(Of Span)
Inheritance
NormalizedSpanCollection

Constructors

NormalizedSpanCollection()

Initializes a new instance of NormalizedSpanCollection that is empty.

NormalizedSpanCollection(IEnumerable<Span>)

Initializes a new instance of NormalizedSpanCollection that contains the specified list of spans.

NormalizedSpanCollection(IList<Span>)

Initializes a new instance of NormalizedSpanCollection that contains the specified list of spans.

NormalizedSpanCollection(Span)

Initializes a new instance of NormalizedSpanCollection that contains the specified span.

Fields

Empty

Methods

Difference(NormalizedSpanCollection, NormalizedSpanCollection)

Finds the difference between two sets. The difference is defined as everything in the first span set that is not in the second span set.

Equals(Object)

Determines whether this span set is the same as another object.

GetEnumerator()

A non-allocating struct enumerator for this collection.

GetHashCode()

Gets a unique hash code for the span set.

Intersection(NormalizedSpanCollection, NormalizedSpanCollection)

Finds the intersection of two span sets.

IntersectsWith(NormalizedSpanCollection)

Determines whether this span set intersects with another span set.

IntersectsWith(Span)

Determines wheher this span set intersects with another span.

Overlap(NormalizedSpanCollection, NormalizedSpanCollection)

Find the overlap of two span sets.

OverlapsWith(NormalizedSpanCollection)

Determines whether this span set overlaps with another span set.

OverlapsWith(Span)

Determines whether this span set overlaps with another span.

ToString()

Provides a string representation of the set.

Union(NormalizedSpanCollection, NormalizedSpanCollection)

Finds the union of two span sets.

Operators

Equality(NormalizedSpanCollection, NormalizedSpanCollection)

Determines whether two span sets are the same.

Inequality(NormalizedSpanCollection, NormalizedSpanCollection)

Determines whether two span sets are not the same.

Applies to