Class NormalizedSpanCollection
A collection of spans that are sorted by start position, // with adjacent and overlapping spans combined.
Inheritance
Inherited Members
Namespace: Telerik.Windows.SyntaxEditor.Core.Text
Assembly: Telerik.Windows.SyntaxEditor.Core.dll
Syntax
public class NormalizedSpanCollection : ReadOnlyCollection<Span>, IList<Span>, ICollection<Span>, IList, ICollection, IReadOnlyList<Span>, IReadOnlyCollection<Span>, IEnumerable<Span>, IEnumerable
Constructors
NormalizedSpanCollection()
Initializes a new instance of the NormalizedSpanCollection class.
Declaration
public NormalizedSpanCollection()
NormalizedSpanCollection(IEnumerable<Span>)
Initializes a new instance of the NormalizedSpanCollection class.
Declaration
public NormalizedSpanCollection(IEnumerable<Span> spans)
Parameters
System.Collections.Generic.IEnumerable<Span>
spans
|
NormalizedSpanCollection(Span)
Initializes a new instance of the NormalizedSpanCollection class.
Declaration
public NormalizedSpanCollection(Span span)
Parameters
Span
span
|
Methods
Difference(NormalizedSpanCollection, NormalizedSpanCollection)
Gets the difference instance between two instances of NormalizedSpanCollection.
Declaration
public static NormalizedSpanCollection Difference(NormalizedSpanCollection left, NormalizedSpanCollection right)
Parameters
NormalizedSpanCollection
left
|
NormalizedSpanCollection
right
|
Returns
NormalizedSpanCollection
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
Intersection(NormalizedSpanCollection, NormalizedSpanCollection)
Intersects two NormalizedSpanCollection instances.
Declaration
public static NormalizedSpanCollection Intersection(NormalizedSpanCollection left, NormalizedSpanCollection right)
Parameters
NormalizedSpanCollection
left
|
NormalizedSpanCollection
right
|
Returns
NormalizedSpanCollection
|
IntersectsWith(NormalizedSpanCollection)
Checks if this instance intersects with other NormalizedSpanCollection instance.
Declaration
public bool IntersectsWith(NormalizedSpanCollection other)
Parameters
NormalizedSpanCollection
other
|
Returns
System.Boolean
|
Overlap(NormalizedSpanCollection, NormalizedSpanCollection)
Overlaps two NormalizedSpanCollection instances.
Declaration
public static NormalizedSpanCollection Overlap(NormalizedSpanCollection left, NormalizedSpanCollection right)
Parameters
NormalizedSpanCollection
left
|
NormalizedSpanCollection
right
|
Returns
NormalizedSpanCollection
|
OverlapsWith(NormalizedSpanCollection)
Checks if this instance overlaps with other NormalizedSpanCollection instance.
Declaration
public bool OverlapsWith(NormalizedSpanCollection otherNormalizedCollection)
Parameters
NormalizedSpanCollection
otherNormalizedCollection
|
Returns
System.Boolean
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
Union(NormalizedSpanCollection, NormalizedSpanCollection)
Unites two NormalizedSpanCollection instances.
Declaration
public static NormalizedSpanCollection Union(NormalizedSpanCollection left, NormalizedSpanCollection right)
Parameters
NormalizedSpanCollection
left
|
NormalizedSpanCollection
right
|
Returns
NormalizedSpanCollection
|
Operators
Equality(NormalizedSpanCollection, NormalizedSpanCollection)
Declaration
public static bool operator ==(NormalizedSpanCollection left, NormalizedSpanCollection right)
Parameters
NormalizedSpanCollection
left
|
NormalizedSpanCollection
right
|
Returns
System.Boolean
|
Inequality(NormalizedSpanCollection, NormalizedSpanCollection)
Declaration
public static bool operator !=(NormalizedSpanCollection left, NormalizedSpanCollection right)
Parameters
NormalizedSpanCollection
left
|
NormalizedSpanCollection
right
|
Returns
System.Boolean
|