Class TextRange
Immutable pairing of a start and end TextPosition defining a contiguous span of text within a fixed document.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Text
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class TextRange
Properties
Empty
Gets an empty range with no defined start or end positions.
Declaration
public static TextRange Empty { get; }
Property Value
|
TextRange
The empty text range. |
EndPosition
Gets the ending TextPosition of the range.
Declaration
public TextPosition EndPosition { get; }
Property Value
|
TextPosition
The end position. |
IsEmpty
Indicates whether the range is empty (both start and end are undefined).
Declaration
public bool IsEmpty { get; }
Property Value
|
System.Boolean
Is empty. |
StartPosition
Gets the starting TextPosition of the range.
Declaration
public TextPosition StartPosition { get; }
Property Value
|
TextPosition
The start position. |
Methods
Equals(Object)
Determines whether another object represents a range with identical start and end positions.
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
An object to compare with this instance. |
Returns
|
System.Boolean
true if obj equals the value of this instance; otherwise, false. |
Overrides
GetHashCode()
Generates a hash code combining the start and end positions.
Declaration
public override int GetHashCode()
Returns
|
System.Int32
A hash code for the current object. |