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