Class TextRange | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class TextRange

    Inheritance
    System.Object
    TextRange
    TextSelection
    Namespace: Unity.UIWidgets.service
    Syntax
    public class TextRange : IEquatable<TextRange>

    Constructors

    TextRange(Int32, Int32)

    Declaration
    public TextRange(int start, int end)
    Parameters
    Type Name Description
    System.Int32 start
    System.Int32 end

    Fields

    empty

    Declaration
    public static readonly TextRange empty
    Field Value
    Type Description
    TextRange

    end

    Declaration
    public readonly int end
    Field Value
    Type Description
    System.Int32

    start

    Declaration
    public readonly int start
    Field Value
    Type Description
    System.Int32

    Properties

    isCollapsed

    Declaration
    public bool isCollapsed { get; }
    Property Value
    Type Description
    System.Boolean

    isNormalized

    Declaration
    public bool isNormalized { get; }
    Property Value
    Type Description
    System.Boolean

    isValid

    Declaration
    public bool isValid { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    collapsed(Int32)

    Declaration
    public static TextRange collapsed(int offset)
    Parameters
    Type Name Description
    System.Int32 offset
    Returns
    Type Description
    TextRange

    Equals(Object)

    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)

    Equals(TextRange)

    Declaration
    public bool Equals(TextRange other)
    Parameters
    Type Name Description
    TextRange other
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    textAfter(String)

    Declaration
    public string textAfter(string text)
    Parameters
    Type Name Description
    System.String text
    Returns
    Type Description
    System.String

    textBefore(String)

    Declaration
    public string textBefore(string text)
    Parameters
    Type Name Description
    System.String text
    Returns
    Type Description
    System.String

    textInside(String)

    Declaration
    public string textInside(string text)
    Parameters
    Type Name Description
    System.String text
    Returns
    Type Description
    System.String

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Operators

    Equality(TextRange, TextRange)

    Declaration
    public static bool operator ==(TextRange left, TextRange right)
    Parameters
    Type Name Description
    TextRange left
    TextRange right
    Returns
    Type Description
    System.Boolean

    Inequality(TextRange, TextRange)

    Declaration
    public static bool operator !=(TextRange left, TextRange right)
    Parameters
    Type Name Description
    TextRange left
    TextRange right
    Returns
    Type Description
    System.Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023