Class TextFieldExtensions
Namespace: Aspid.FastTools.UIElements
Assembly: Aspid.FastTools.dll
Provides extension methods for TextField.
public static class TextFieldExtensions
Inheritance
Methods
SetMultiline<T>(T, bool)
Sets multiline.
public static T SetMultiline<T>(this T element, bool value) where T : TextField
Parameters
element T
The element to modify.
value bool
When true, the field accepts several lines of text.
Returns
T
The element, for chaining.
Type Parameters
T
The field type.
SetVerticalScrollerVisibilitySelf<T>(T, ScrollerVisibility)
Sets verticalScrollerVisibility.
public static T SetVerticalScrollerVisibilitySelf<T>(this T element, ScrollerVisibility value) where T : TextField
Parameters
element T
The element to modify.
value ScrollerVisibility
The visibility of the vertical scroller to set.
Returns
T
The element, for chaining.
Type Parameters
T
The field type.
Remarks
Takes effect only on a multiline field: call TextFieldExtensions.SetMultiline<T> first.
Named with Self: the obsolete instance method SetVerticalScrollerVisibility of Unity returns Boolean and hides an extension method of that name.