Class NormalizedSnapshotSpanCollection
Represents a normalized snapshot span collection. NOTE: A read-only collection of TextSnapshotSpan objects, all from the same snapshot.
Inheritance
Namespace: Telerik.Windows.SyntaxEditor.Core.Text
Assembly: Telerik.Windows.SyntaxEditor.Core.dll
Syntax
public class NormalizedSnapshotSpanCollection : Object, IList<TextSnapshotSpan>, ICollection<TextSnapshotSpan>, IEnumerable<TextSnapshotSpan>, IEnumerable, IList, ICollection
Constructors
NormalizedSnapshotSpanCollection()
Initializes a new instance of the NormalizedSnapshotSpanCollection class.
Declaration
public NormalizedSnapshotSpanCollection()
NormalizedSnapshotSpanCollection(IEnumerable<TextSnapshotSpan>)
Initializes a new instance of the NormalizedSnapshotSpanCollection class.
Declaration
public NormalizedSnapshotSpanCollection(IEnumerable<TextSnapshotSpan> snapshotSpans)
Parameters
System.Collections.Generic.IEnumerable<TextSnapshotSpan>
snapshotSpans
|
NormalizedSnapshotSpanCollection(TextSnapshot, IEnumerable<Span>)
Initializes a new instance of the NormalizedSnapshotSpanCollection class.
Declaration
public NormalizedSnapshotSpanCollection(TextSnapshot snapshot, IEnumerable<Span> spans)
Parameters
TextSnapshot
snapshot
|
System.Collections.Generic.IEnumerable<Span>
spans
|
NormalizedSnapshotSpanCollection(TextSnapshotSpan)
Initializes a new instance of the NormalizedSnapshotSpanCollection class.
Declaration
public NormalizedSnapshotSpanCollection(TextSnapshotSpan span)
Parameters
TextSnapshotSpan
span
|
Fields
Empty
Empty instance.
Declaration
public static readonly NormalizedSnapshotSpanCollection Empty
Field Value
NormalizedSnapshotSpanCollection
|
Properties
Count
Gets the count of the spans.
Declaration
public int Count { get; }
Property Value
System.Int32
|
Item[Int32]
Gets or sets an index-based snapshot from the collection.
Declaration
public TextSnapshotSpan this[int index] { get; set; }
Parameters
System.Int32
index
|
Property Value
TextSnapshotSpan
|
Methods
Contains(Object)
Declaration
public bool Contains(object value)
Parameters
System.Object
value
|
Returns
System.Boolean
|
Contains(TextSnapshotSpan)
Declaration
public bool Contains(TextSnapshotSpan item)
Parameters
TextSnapshotSpan
item
|
Returns
System.Boolean
|
CopyTo(Array, Int32)
Copies this instance into an array.
Declaration
public void CopyTo(Array array, int index)
Parameters
System.Array
array
|
System.Int32
index
|
CopyTo(TextSnapshotSpan[], Int32)
Copies this instance into a TextSnapshotSpan array.
Declaration
public void CopyTo(TextSnapshotSpan[] array, int arrayIndex)
Parameters
TextSnapshotSpan[]
array
|
System.Int32
arrayIndex
|
Difference(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)
Gets the difference between two NormalizedSnapshotSpanCollection instances.
Declaration
public static NormalizedSnapshotSpanCollection Difference(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection
left
|
NormalizedSnapshotSpanCollection
right
|
Returns
NormalizedSnapshotSpanCollection
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
GetEnumerator()
Gets the enumerator.
Declaration
public IEnumerator<TextSnapshotSpan> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<TextSnapshotSpan>
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
IndexOf(Object)
Declaration
public int IndexOf(object value)
Parameters
System.Object
value
|
Returns
System.Int32
|
IndexOf(TextSnapshotSpan)
Declaration
public int IndexOf(TextSnapshotSpan item)
Parameters
TextSnapshotSpan
item
|
Returns
System.Int32
|
Intersection(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)
Gets the intersection instance of two NormalizedSnapshotSpanCollection instances.
Declaration
public static NormalizedSnapshotSpanCollection Intersection(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection
left
|
NormalizedSnapshotSpanCollection
right
|
Returns
NormalizedSnapshotSpanCollection
|
IntersectsWith(NormalizedSnapshotSpanCollection)
Checks if this instance intersects with other NormalizedSnapshotSpanCollection instance.
Declaration
public bool IntersectsWith(NormalizedSnapshotSpanCollection set)
Parameters
NormalizedSnapshotSpanCollection
set
|
Returns
System.Boolean
|
Overlap(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)
Overlaps two instances of NormalizedSnapshotSpanCollection class.
Declaration
public static NormalizedSnapshotSpanCollection Overlap(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection
left
|
NormalizedSnapshotSpanCollection
right
|
Returns
NormalizedSnapshotSpanCollection
|
OverlapsWith(NormalizedSnapshotSpanCollection)
Checks if this instance overlaps with other NormalizedSnapshotSpanCollection instance.
Declaration
public bool OverlapsWith(NormalizedSnapshotSpanCollection set)
Parameters
NormalizedSnapshotSpanCollection
set
|
Returns
System.Boolean
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Union(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)
Unites two instances of NormalizedSnapshotSpanCollection class.
Declaration
public static NormalizedSnapshotSpanCollection Union(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection
left
|
NormalizedSnapshotSpanCollection
right
|
Returns
NormalizedSnapshotSpanCollection
|
Operators
Equality(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)
Declaration
public static bool operator ==(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection
left
|
NormalizedSnapshotSpanCollection
right
|
Returns
System.Boolean
|
Inequality(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)
Declaration
public static bool operator !=(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection
left
|
NormalizedSnapshotSpanCollection
right
|
Returns
System.Boolean
|