docs.unity.cn
    Show / Hide Table of Contents

    Struct QueryToken

    Represents a token of a query string.

    Namespace: UnityEditor.Search
    Syntax
    public readonly struct QueryToken

    Constructors

    QueryToken(String, Int32)

    Creates a token from a string and a position.

    Declaration
    public QueryToken(string text, int position)
    Parameters
    Type Name Description
    String text

    The value of the token.

    Int32 position

    The position of the token in the entire query string.

    QueryToken(String, Int32, Int32)

    Creates a token from a string, a position and a length.

    Declaration
    public QueryToken(string text, int position, int length)
    Parameters
    Type Name Description
    String text

    The value of the token.

    Int32 position

    The position of the token in the entire query string.

    Int32 length

    The length of the token.

    Properties

    length

    The length of the token. Can be different than the length of the text.

    Declaration
    public readonly int length { get; }
    Property Value
    Type Description
    Int32

    position

    The position of the token in the entire query string.

    Declaration
    public readonly int position { get; }
    Property Value
    Type Description
    Int32

    text

    The text representing the token.

    Declaration
    public readonly string text { get; }
    Property Value
    Type Description
    String
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, October 26, 2022
    Terms of use