ClassTextSnapshotSpan
Class
Represents a text snapshot span.
Definition
Namespace:Telerik.Windows.SyntaxEditor.Core.Text
Assembly:Telerik.Windows.SyntaxEditor.Core.dll
Syntax:
cs-api-definition
public class TextSnapshotSpan
Inheritance: objectTextSnapshotSpan
Constructors
TextSnapshotSpan(TextSnapshot, Span)
Initializes a new instance of the TextSnapshotSpan class.
Declaration
cs-api-definition
public TextSnapshotSpan(TextSnapshot textSnapshot, Span span)
Parameters
textSnapshot
span
Properties
End
Gets the end of the span.
IsEmpty
Gets a flag whether the span is empty.
Length
Gets the length of the span.
Snapshot
Gets the snapshot.
Methods
Equals(object)
Equals implementation.
GetHashCode()
Gets the hash code of this instance.
GetText()
Gets the text from the snapshot.
ToNormalizedCollection()
Converts this instance to normalized collection.
Declaration
cs-api-definition
public NormalizedSnapshotSpanCollection ToNormalizedCollection()
Returns
Operators
operator !=(TextSnapshotSpan, TextSnapshotSpan)
Implementation of != operator.
Declaration
cs-api-definition
public static bool operator !=(TextSnapshotSpan left, TextSnapshotSpan right)
Parameters
left
right
Returns
operator ==(TextSnapshotSpan, TextSnapshotSpan)
Implementation of == operator.
Declaration
cs-api-definition
public static bool operator ==(TextSnapshotSpan left, TextSnapshotSpan right)
Parameters
left
right
Returns