Class SliderIntExtensions
Namespace: Aspid.FastTools.UIElements
Assembly: Aspid.FastTools.dll
Provides extension methods for BaseSlider<T> of Int32.
public static class SliderIntExtensions
Inheritance
Remarks
Kept apart from SliderExtensions: overloads that differ only by the constraint on the element type
cannot share one class.
Methods
SetDirection<T>(T, SliderDirection)
Sets direction controlling the orientation of the element.
public static T SetDirection<T>(this T element, SliderDirection value) where T : BaseSlider<int>
Parameters
element T
The element to modify.
value SliderDirection
The slider direction to set.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetFill<T>(T, bool)
Sets fill controlling whether the track is filled up to the current value.
public static T SetFill<T>(this T element, bool value) where T : BaseSlider<int>
Parameters
element T
The element to modify.
value bool
When true, the track is filled up to the current value.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetInverted<T>(T, bool)
Sets inverted reversing the direction of the element.
public static T SetInverted<T>(this T element, bool value) where T : BaseSlider<int>
Parameters
element T
The element to modify.
value bool
When true, the slider direction is reversed.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetPageSize<T>(T, float)
Sets pageSize controlling how much the value changes per page step.
public static T SetPageSize<T>(this T element, float value) where T : BaseSlider<int>
Parameters
element T
The element to modify.
value float
The page size to set.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.
SetShowInputField<T>(T, bool)
Sets showInputField controlling whether a numeric input field is shown alongside the element.
public static T SetShowInputField<T>(this T element, bool value) where T : BaseSlider<int>
Parameters
element T
The element to modify.
value bool
When true, a numeric input field is shown next to the slider.
Returns
T
The element, for chaining.
Type Parameters
T
The element type.