Class TextSnapshotSpan
Represents a text snapshot span.
Inheritance
Namespace: Telerik.Windows.SyntaxEditor.Core.Text
Assembly: Telerik.Windows.SyntaxEditor.Core.dll
Syntax
public class TextSnapshotSpan : Object
Constructors
TextSnapshotSpan(TextSnapshot, Span)
Initializes a new instance of the TextSnapshotSpan class.
Declaration
public TextSnapshotSpan(TextSnapshot textSnapshot, Span span)
Parameters
TextSnapshot
textSnapshot
|
Span
span
|
Properties
End
Gets the end of the span.
Declaration
public int End { get; }
Property Value
System.Int32
|
IsEmpty
Gets a flag whether the span is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
|
Length
Gets the length of the span.
Declaration
public int Length { get; }
Property Value
System.Int32
|
Snapshot
Span
Start
Gets the start of the span.
Declaration
public int Start { get; }
Property Value
System.Int32
|
Methods
Equals(Object)
Equals implementation.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
GetHashCode()
Gets the hash code of this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
|
GetText()
Gets the text from the snapshot.
Declaration
public string GetText()
Returns
System.String
|
ToNormalizedCollection()
Converts this instance to normalized collection.
Declaration
public NormalizedSnapshotSpanCollection ToNormalizedCollection()
Returns
NormalizedSnapshotSpanCollection
|
Operators
Equality(TextSnapshotSpan, TextSnapshotSpan)
Implementation of == operator.
Declaration
public static bool operator ==(TextSnapshotSpan left, TextSnapshotSpan right)
Parameters
TextSnapshotSpan
left
|
TextSnapshotSpan
right
|
Returns
System.Boolean
|
Inequality(TextSnapshotSpan, TextSnapshotSpan)
Implementation of != operator.
Declaration
public static bool operator !=(TextSnapshotSpan left, TextSnapshotSpan right)
Parameters
TextSnapshotSpan
left
|
TextSnapshotSpan
right
|
Returns
System.Boolean
|