Inheritance
System.Object
TextRange
public class TextRange : IEquatable<TextRange>
Constructors
Declaration
public TextRange(int start, int end)
Parameters
Type |
Name |
Description |
System.Int32 |
start |
|
System.Int32 |
end |
|
Fields
Declaration
public static readonly TextRange empty
Field Value
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public readonly int start
Field Value
Type |
Description |
System.Int32 |
|
Properties
Declaration
public bool isCollapsed { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool isNormalized { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool isValid { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public static TextRange collapsed(int offset)
Parameters
Type |
Name |
Description |
System.Int32 |
offset |
|
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public bool Equals(TextRange other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public string textAfter(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
System.String |
|
Declaration
public string textBefore(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
System.String |
|
Declaration
public string textInside(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Type |
Description |
System.String |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Declaration
public static bool operator ==(TextRange left, TextRange right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(TextRange left, TextRange right)
Parameters
Returns
Type |
Description |
System.Boolean |
|