Show / Hide Table of Contents

Struct UQuery.QueryBuilder<T>

Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: UnityEngine.Experimental.UIElements
Assembly: UnityEngine.dll
Syntax
public struct QueryBuilder<T>
    where T : VisualElement
Type Parameters
Name Description
T

Constructors

| Improve this Doc View Source

QueryBuilder(VisualElement)

Declaration
public QueryBuilder(VisualElement visualElement)
Parameters
Type Name Description
VisualElement visualElement

Methods

| Improve this Doc View Source

Active()

Declaration
public UQuery.QueryBuilder<T> Active()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

AtIndex(Int32)

Declaration
public T AtIndex(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
T
| Improve this Doc View Source

Build()

Declaration
public UQuery.QueryState<T> Build()
Returns
Type Description
UQuery.QueryState<T>
| Improve this Doc View Source

Checked()

Declaration
public UQuery.QueryBuilder<T> Checked()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

Children<T2>(String, String)

Declaration
public UQuery.QueryBuilder<T2> Children<T2>(string name = null, string className = null)
    where T2 : VisualElement
Parameters
Type Name Description
String name
String className
Returns
Type Description
UQuery.QueryBuilder<T2>
Type Parameters
Name Description
T2
| Improve this Doc View Source

Children<T2>(String, String[])

Declaration
public UQuery.QueryBuilder<T2> Children<T2>(string name = null, params string[] classes)
    where T2 : VisualElement
Parameters
Type Name Description
String name
String[] classes
Returns
Type Description
UQuery.QueryBuilder<T2>
Type Parameters
Name Description
T2
| Improve this Doc View Source

Class(String)

Declaration
public UQuery.QueryBuilder<T> Class(string classname)
Parameters
Type Name Description
String classname
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

Descendents<T2>(String, String)

Declaration
public UQuery.QueryBuilder<T2> Descendents<T2>(string name = null, string classname = null)
    where T2 : VisualElement
Parameters
Type Name Description
String name
String classname
Returns
Type Description
UQuery.QueryBuilder<T2>
Type Parameters
Name Description
T2
| Improve this Doc View Source

Descendents<T2>(String, String[])

Declaration
public UQuery.QueryBuilder<T2> Descendents<T2>(string name = null, params string[] classNames)
    where T2 : VisualElement
Parameters
Type Name Description
String name
String[] classNames
Returns
Type Description
UQuery.QueryBuilder<T2>
Type Parameters
Name Description
T2
| Improve this Doc View Source

Enabled()

Declaration
public UQuery.QueryBuilder<T> Enabled()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

First()

Declaration
public T First()
Returns
Type Description
T
| Improve this Doc View Source

Focused()

Declaration
public UQuery.QueryBuilder<T> Focused()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

ForEach(Action<T>)

Declaration
public void ForEach(Action<T> funcCall)
Parameters
Type Name Description
Action<T> funcCall
| Improve this Doc View Source

ForEach<T2>(List<T2>, Func<T, T2>)

Declaration
public void ForEach<T2>(List<T2> result, Func<T, T2> funcCall)
Parameters
Type Name Description
List<T2> result
Func<T, T2> funcCall
Type Parameters
Name Description
T2
| Improve this Doc View Source

ForEach<T2>(Func<T, T2>)

Declaration
public List<T2> ForEach<T2>(Func<T, T2> funcCall)
Parameters
Type Name Description
Func<T, T2> funcCall
Returns
Type Description
List<T2>
Type Parameters
Name Description
T2
| Improve this Doc View Source

Hovered()

Declaration
public UQuery.QueryBuilder<T> Hovered()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

Last()

Declaration
public T Last()
Returns
Type Description
T
| Improve this Doc View Source

Name(String)

Declaration
public UQuery.QueryBuilder<T> Name(string id)
Parameters
Type Name Description
String id
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

NotActive()

Declaration
public UQuery.QueryBuilder<T> NotActive()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

NotChecked()

Declaration
public UQuery.QueryBuilder<T> NotChecked()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

NotEnabled()

Declaration
public UQuery.QueryBuilder<T> NotEnabled()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

NotFocused()

Declaration
public UQuery.QueryBuilder<T> NotFocused()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

NotHovered()

Declaration
public UQuery.QueryBuilder<T> NotHovered()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

NotSelected()

Declaration
public UQuery.QueryBuilder<T> NotSelected()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

NotVisible()

Declaration
public UQuery.QueryBuilder<T> NotVisible()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

OfType<T2>(String, String)

Declaration
public UQuery.QueryBuilder<T2> OfType<T2>(string name = null, string className = null)
    where T2 : VisualElement
Parameters
Type Name Description
String name
String className
Returns
Type Description
UQuery.QueryBuilder<T2>
Type Parameters
Name Description
T2
| Improve this Doc View Source

OfType<T2>(String, String[])

Declaration
public UQuery.QueryBuilder<T2> OfType<T2>(string name = null, params string[] classes)
    where T2 : VisualElement
Parameters
Type Name Description
String name
String[] classes
Returns
Type Description
UQuery.QueryBuilder<T2>
Type Parameters
Name Description
T2
| Improve this Doc View Source

Selected()

Declaration
public UQuery.QueryBuilder<T> Selected()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

ToList()

Declaration
public List<T> ToList()
Returns
Type Description
List<T>
| Improve this Doc View Source

ToList(List<T>)

Declaration
public void ToList(List<T> results)
Parameters
Type Name Description
List<T> results
| Improve this Doc View Source

Visible()

Declaration
public UQuery.QueryBuilder<T> Visible()
Returns
Type Description
UQuery.QueryBuilder<T>
| Improve this Doc View Source

Where(Func<T, Boolean>)

Declaration
public UQuery.QueryBuilder<T> Where(Func<T, bool> selectorPredicate)
Parameters
Type Name Description
Func<T, Boolean> selectorPredicate
Returns
Type Description
UQuery.QueryBuilder<T>

Operators

| Improve this Doc View Source

Implicit(UQuery.QueryBuilder<T> to T)

Declaration
public static implicit operator T(UQuery.QueryBuilder<T> s)
Parameters
Type Name Description
UQuery.QueryBuilder<T> s
Returns
Type Description
T

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX