Class FoldoutExtensions
Namespace: Aspid.FastTools.UIElements
Assembly: Aspid.FastTools.dll
Provides extension methods for Foldout.
public static class FoldoutExtensions
Inheritance
Methods
SetText<T>(T, string)
Sets text.
public static T SetText<T>(this T element, string value) where T : Foldout
Parameters
element T
The element to modify.
value string
The text to set.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetToggleOnLabelClick<T>(T, bool)
Sets toggleOnLabelClick.
public static T SetToggleOnLabelClick<T>(this T element, bool value) where T : Foldout
Parameters
element T
The element to modify.
value bool
When true, clicking the label toggles the foldout.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.