Class SearchExpression
Inheritance
SearchExpression
Syntax
public class SearchExpression
Fields
alias
Declaration
public readonly StringView alias
Field Value
innerText
Declaration
public readonly StringView innerText
Field Value
outerText
Declaration
public readonly StringView outerText
Field Value
parameters
Declaration
public readonly SearchExpression[] parameters
Field Value
types
Declaration
public readonly SearchExpressionType types
Field Value
Properties
name
Declaration
public string name { get; }
Property Value
Methods
Check(SearchExpression, SearchExpressionContext)
Declaration
public static bool Check(SearchExpression e, SearchExpressionContext c)
Parameters
Returns
CreateId()
Declaration
public static string CreateId()
Returns
CreateItem(Double, String)
Declaration
public static SearchItem CreateItem(double value, string label = null)
Parameters
Returns
CreateItem(Int32, String)
Declaration
public static SearchItem CreateItem(int value, string label = null)
Parameters
Returns
CreateItem(String, Object, String)
Declaration
public static SearchItem CreateItem(string label, object value, string description)
Parameters
Returns
CreateItem(String, String)
Declaration
public static SearchItem CreateItem(string value, string label = null)
Parameters
Returns
Execute(SearchContext)
Declaration
public IEnumerable<SearchItem> Execute(SearchContext searchContext)
Parameters
Returns
Execute(SearchExpressionContext)
Declaration
public IEnumerable<SearchItem> Execute(SearchExpressionContext c)
Parameters
Returns
FormatItem(SearchContext, SearchItem, String)
Declaration
public static string FormatItem(SearchContext ctx, SearchItem item, string formatString)
Parameters
Returns
GetBooleanValue(Boolean)
Declaration
public bool GetBooleanValue(bool defaultValue = false)
Parameters
Type |
Name |
Description |
Boolean |
defaultValue |
|
Returns
Declaration
public static bool GetFormatString(SearchExpression expr, out string formatStr)
Parameters
Returns
GetNumberValue(Double)
Declaration
public double GetNumberValue(double defaultValue = NaN)
Parameters
Type |
Name |
Description |
Double |
defaultValue |
|
Returns
IsKeyword(SearchExpressionKeyword)
Declaration
public bool IsKeyword(SearchExpressionKeyword keyword)
Parameters
Returns
IsTrue(SearchItem)
Declaration
public static bool IsTrue(SearchItem item)
Parameters
Returns
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
Returns
Type Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
TryConvertToDouble(SearchItem, out Double, String)
Declaration
public static bool TryConvertToDouble(SearchItem item, out double value, string selector = null)
Parameters
Returns
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.