Class TextRange
The text range.
Inheritance
System.Object
TextRange
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class TextRange : ValueType
Constructors
TextRange(Int32, Int32)
Initializes a new instance of the TextRange struct.
Declaration
public TextRange(int startIndex, int endIndex)
Parameters
System.Int32
startIndex
The start index. |
System.Int32
endIndex
The end index. |
Fields
EndIndex
The end index (exclusive).
Declaration
public int EndIndex
Field Value
System.Int32
|
StartIndex
The start index (inclusive).
Declaration
public int StartIndex
Field Value
System.Int32
|
Properties
IsEmpty
Gets a value indicating whether range is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
|
Length
Gets the range length.
Declaration
public int Length { get; }
Property Value
System.Int32
|
Methods
Contains(Int32)
Determines whether this range contains the character index.
Declaration
public bool Contains(int index)
Parameters
System.Int32
index
The index. |
Returns
System.Boolean
|
Intersect(ref TextRange)
Determines whether this range intersects with the other range.
Declaration
public bool Intersect(ref TextRange other)
Parameters
TextRange
other
The other text range. |
Returns
System.Boolean
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|