docs.unity.cn
    Show / Hide Table of Contents

    Class SearchExpression

    Inheritance
    Object
    SearchExpression
    Namespace: UnityEditor.Search
    Syntax
    public class SearchExpression

    Fields

    alias

    Declaration
    public readonly StringView alias
    Field Value
    Type Description
    StringView

    innerText

    Declaration
    public readonly StringView innerText
    Field Value
    Type Description
    StringView

    outerText

    Declaration
    public readonly StringView outerText
    Field Value
    Type Description
    StringView

    parameters

    Declaration
    public readonly SearchExpression[] parameters
    Field Value
    Type Description
    SearchExpression[]

    types

    Declaration
    public readonly SearchExpressionType types
    Field Value
    Type Description
    SearchExpressionType

    Properties

    name

    Declaration
    public string name { get; }
    Property Value
    Type Description
    String

    Methods

    Check(SearchExpression, SearchExpressionContext)

    Declaration
    public static bool Check(SearchExpression e, SearchExpressionContext c)
    Parameters
    Type Name Description
    SearchExpression e
    SearchExpressionContext c
    Returns
    Type Description
    Boolean

    CreateId()

    Declaration
    public static string CreateId()
    Returns
    Type Description
    String

    CreateItem(Double, String)

    Declaration
    public static SearchItem CreateItem(double value, string label = null)
    Parameters
    Type Name Description
    Double value
    String label
    Returns
    Type Description
    SearchItem

    CreateItem(Int32, String)

    Declaration
    public static SearchItem CreateItem(int value, string label = null)
    Parameters
    Type Name Description
    Int32 value
    String label
    Returns
    Type Description
    SearchItem

    CreateItem(String, Object, String)

    Declaration
    public static SearchItem CreateItem(string label, object value, string description)
    Parameters
    Type Name Description
    String label
    Object value
    String description
    Returns
    Type Description
    SearchItem

    CreateItem(String, String)

    Declaration
    public static SearchItem CreateItem(string value, string label = null)
    Parameters
    Type Name Description
    String value
    String label
    Returns
    Type Description
    SearchItem

    Execute(SearchContext)

    Declaration
    public IEnumerable<SearchItem> Execute(SearchContext searchContext)
    Parameters
    Type Name Description
    SearchContext searchContext
    Returns
    Type Description
    IEnumerable<SearchItem>

    Execute(SearchExpressionContext)

    Declaration
    public IEnumerable<SearchItem> Execute(SearchExpressionContext c)
    Parameters
    Type Name Description
    SearchExpressionContext c
    Returns
    Type Description
    IEnumerable<SearchItem>

    FormatItem(SearchContext, SearchItem, String)

    Declaration
    public static string FormatItem(SearchContext ctx, SearchItem item, string formatString)
    Parameters
    Type Name Description
    SearchContext ctx
    SearchItem item
    String formatString
    Returns
    Type Description
    String

    GetBooleanValue(Boolean)

    Declaration
    public bool GetBooleanValue(bool defaultValue = false)
    Parameters
    Type Name Description
    Boolean defaultValue
    Returns
    Type Description
    Boolean

    GetFormatString(SearchExpression, out String)

    Declaration
    public static bool GetFormatString(SearchExpression expr, out string formatStr)
    Parameters
    Type Name Description
    SearchExpression expr
    String formatStr
    Returns
    Type Description
    Boolean

    GetNumberValue(Double)

    Declaration
    public double GetNumberValue(double defaultValue = NaN)
    Parameters
    Type Name Description
    Double defaultValue
    Returns
    Type Description
    Double

    IsKeyword(SearchExpressionKeyword)

    Declaration
    public bool IsKeyword(SearchExpressionKeyword keyword)
    Parameters
    Type Name Description
    SearchExpressionKeyword keyword
    Returns
    Type Description
    Boolean

    IsTrue(SearchItem)

    Declaration
    public static bool IsTrue(SearchItem item)
    Parameters
    Type Name Description
    SearchItem item
    Returns
    Type Description
    Boolean

    ProcessValues<T>(IEnumerable<SearchItem>, String, Func<SearchItem, T>)

    Declaration
    public static IEnumerable<SearchItem> ProcessValues<T>(IEnumerable<SearchItem> items, string outputValueFieldName, Func<SearchItem, T> processHandler)
    Parameters
    Type Name Description
    IEnumerable<SearchItem> items
    String outputValueFieldName
    Func<SearchItem, T> processHandler
    Returns
    Type Description
    IEnumerable<SearchItem>
    Type Parameters
    Name Description
    T

    ToString()

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

    TryConvertToDouble(SearchItem, out Double, String)

    Declaration
    public static bool TryConvertToDouble(SearchItem item, out double value, string selector = null)
    Parameters
    Type Name Description
    SearchItem item
    Double value
    String selector
    Returns
    Type Description
    Boolean
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, October 26, 2022
    Terms of use