Search Results for

    Show / Hide Table of Contents

    Struct TextRange

    The text range.

    Assembly: FlaxEngine.dll
    File: Engine/Render2D/Font.h
    Syntax
    public struct TextRange

    Fields

    EndIndex

    The end index (exclusive).

    Declaration
    public int32 EndIndex
    Field Value
    int32

    StartIndex

    The start index (inclusive).

    Declaration
    public int32 StartIndex
    Field Value
    int32

    Methods

    Contains(int32 index)

    Determines whether this range contains the character index.

    Declaration
    public bool Contains(int32 index) const
    Parameters
    int32 index

    The index.

    Returns
    bool

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

    Intersect(const TextRange& other)

    Determines whether this range intersects with the other range.

    Declaration
    public bool Intersect(const TextRange& other) const
    Parameters
    TextRange other

    The other text range.

    Returns
    bool

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

    IsEmpty()

    Gets a value indicating whether range is empty.

    Declaration
    public bool IsEmpty() const
    Returns
    bool

    Length()

    Gets the range length.

    Declaration
    public int32 Length() const
    Returns
    int32

    Substring(const StringView& text)

    Gets the substring from the source text.

    Declaration
    public StringView Substring(const StringView& text) const
    Parameters
    StringView text

    The text.

    Returns
    StringView

    The substring of the original text of the defined range.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat