Search Results for

    Show / Hide Table of Contents

    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

    true if range contains the specified character index; otherwise, false.

    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

    true if range intersects with the specified range index;, false.

    ToString()

    Declaration
    public override string ToString()
    Returns
    System.String

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat