Represents a normalized snapshot span collection. NOTE: A read-only collection of TextSnapshotSpan objects, all from the same snapshot.
Definition
Namespace:Telerik.Windows.SyntaxEditor.Core.Text
Assembly:Telerik.Windows.SyntaxEditor.Core.dll
Syntax:
public class NormalizedSnapshotSpanCollection : IList<TextSnapshotSpan>, ICollection<TextSnapshotSpan>, IEnumerable<TextSnapshotSpan>, IList, ICollection, IEnumerable
Inheritance: objectNormalizedSnapshotSpanCollection
Implements:
Constructors
Initializes a new instance of the NormalizedSnapshotSpanCollection class.
public NormalizedSnapshotSpanCollection()
Initializes a new instance of the NormalizedSnapshotSpanCollection class.
public NormalizedSnapshotSpanCollection(IEnumerable<TextSnapshotSpan> snapshotSpans)
Initializes a new instance of the NormalizedSnapshotSpanCollection class.
public NormalizedSnapshotSpanCollection(TextSnapshot snapshot, IEnumerable<Span> spans)
Initializes a new instance of the NormalizedSnapshotSpanCollection class.
Fields
Empty instance.
public static readonly NormalizedSnapshotSpanCollection Empty
Properties
Gets or sets an index-based snapshot from the collection.
Methods
Copies this instance into a TextSnapshotSpan array.
public void CopyTo(TextSnapshotSpan[] array, int arrayIndex)
Implements:
Gets the difference between two NormalizedSnapshotSpanCollection instances.
public static NormalizedSnapshotSpanCollection Difference(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Gets the enumerator.
public IEnumerator<TextSnapshotSpan> GetEnumerator()
Implements:
Gets the intersection instance of two NormalizedSnapshotSpanCollection instances.
public static NormalizedSnapshotSpanCollection Intersection(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Checks if this instance intersects with other NormalizedSnapshotSpanCollection instance.
public bool IntersectsWith(NormalizedSnapshotSpanCollection set)
Overlaps two instances of NormalizedSnapshotSpanCollection class.
public static NormalizedSnapshotSpanCollection Overlap(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Checks if this instance overlaps with other NormalizedSnapshotSpanCollection instance.
public bool OverlapsWith(NormalizedSnapshotSpanCollection set)
Unites two instances of NormalizedSnapshotSpanCollection class.
public static NormalizedSnapshotSpanCollection Union(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Operators
public static bool operator !=(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
public static bool operator ==(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)