Table of Contents

Class UIEExtension

Namespace
SuiSuiShou.UIEEx
Assembly
SuiSuiShou.UIEEx.Runtime.dll

UI Elements extension methods

public static class UIEExtension
Inheritance
UIEExtension
Inherited Members

Methods

SetBindingPath<T>(T, string)

Set the binding path of the target element

public static T SetBindingPath<T>(this T target, string bindingPath) where T : IBindable

Parameters

target T
bindingPath string

Returns

T

Type Parameters

T

SetLabel<T>(BaseField<T>, string)

Set the Label content of the target element, return BaseFieldT

public static BaseField<T> SetLabel<T>(this BaseField<T> target, string label)

Parameters

target BaseField<T>
label string

Returns

BaseField<T>

Type Parameters

T

SetLabel<T, V>(T, string)

Set the Label content of BaseFieldV element, return the target element

public static T SetLabel<T, V>(this T target, string label) where T : BaseField<V>

Parameters

target T
label string

Returns

T

Type Parameters

T
V

SetParent<T>(T, VisualElement)

Set the parent of the target element

public static T SetParent<T>(this T target, VisualElement parent) where T : VisualElement

Parameters

target T
parent VisualElement

Returns

T

Type Parameters

T

SetText<T>(T, string)

Set the text of the target element

public static T SetText<T>(this T target, string text) where T : TextElement

Parameters

target T
text string

Returns

T

Type Parameters

T