StructSpan
Represents a document span.
Definition
Namespace:Telerik.Windows.SyntaxEditor.Core.Text
Assembly:Telerik.Windows.SyntaxEditor.Core.dll
Syntax:
public struct Span
Constructors
Span(int, int)
Initializes a new instance of the Span struct.
Fields
Properties
End
Gets the end of the span.
IsEmpty
Gets a value indicating whether the span is empty.
Length
Gets the length of this span.
Methods
Contains(Span)
Checks if the given span in contained in this span instance.
Contains(int)
Checks if the given position in contained in the span.
Equals(object)
Equals implementation.
FromBounds(int, int)
Initializes a new instance of the Span struct from start and end.
Intersection(Span)
Gets the Span that is result from the intersection of the given span parameter instance and this span instance.
IntersectsWith(Span)
Checks if the given span intersects with this span instance.
Overlap(Span)
Gets the Span which is a result from the overlap of the given span parameter instance and this span instance.
OverlapsWith(Span)
Checks if the given span overlaps with this span instance.
Operators
operator !=(Span, Span)
Implementation of != operator.
operator ==(Span, Span)
Implementation of == operator.