Skip to main content

Class SliderExtensions

Namespace: Aspid.FastTools.UIElements
Assembly: Aspid.FastTools.dll

Provides extension methods for BaseSlider<T>.

public static class SliderExtensions

Inheritance​

object ← SliderExtensions

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<float>

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<float>

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.

SetHighValue<T>(T, byte)​

Sets highValue.

public static T SetHighValue<T>(this T element, byte value) where T : BaseSlider<byte>

Parameters​

element T

The element to modify.

value byte

The high value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetHighValue<T>(T, sbyte)​

Sets highValue.

public static T SetHighValue<T>(this T element, sbyte value) where T : BaseSlider<sbyte>

Parameters​

element T

The element to modify.

value sbyte

The high value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetHighValue<T>(T, double)​

Sets highValue.

public static T SetHighValue<T>(this T element, double value) where T : BaseSlider<double>

Parameters​

element T

The element to modify.

value double

The high value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetHighValue<T>(T, float)​

Sets highValue.

public static T SetHighValue<T>(this T element, float value) where T : BaseSlider<float>

Parameters​

element T

The element to modify.

value float

The high value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetHighValue<T>(T, int)​

Sets highValue.

public static T SetHighValue<T>(this T element, int value) where T : BaseSlider<int>

Parameters​

element T

The element to modify.

value int

The high value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetHighValue<T>(T, uint)​

Sets highValue.

public static T SetHighValue<T>(this T element, uint value) where T : BaseSlider<uint>

Parameters​

element T

The element to modify.

value uint

The high value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetHighValue<T>(T, long)​

Sets highValue.

public static T SetHighValue<T>(this T element, long value) where T : BaseSlider<long>

Parameters​

element T

The element to modify.

value long

The high value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetHighValue<T>(T, ulong)​

Sets highValue.

public static T SetHighValue<T>(this T element, ulong value) where T : BaseSlider<ulong>

Parameters​

element T

The element to modify.

value ulong

The high value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetHighValue<T>(T, short)​

Sets highValue.

public static T SetHighValue<T>(this T element, short value) where T : BaseSlider<short>

Parameters​

element T

The element to modify.

value short

The high value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetHighValue<T>(T, ushort)​

Sets highValue.

public static T SetHighValue<T>(this T element, ushort value) where T : BaseSlider<ushort>

Parameters​

element T

The element to modify.

value ushort

The high value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetHighValue<T, TValue>(T, TValue)​

Sets highValue.

public static T SetHighValue<T, TValue>(this T element, TValue value) where T : BaseSlider<TValue> where TValue : IComparable<TValue>

Parameters​

element T

The element to modify.

value TValue

The high value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

TValue

The value type of the element.

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<float>

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.

SetLowValue<T>(T, byte)​

Sets lowValue.

public static T SetLowValue<T>(this T element, byte value) where T : BaseSlider<byte>

Parameters​

element T

The element to modify.

value byte

The low value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetLowValue<T>(T, sbyte)​

Sets lowValue.

public static T SetLowValue<T>(this T element, sbyte value) where T : BaseSlider<sbyte>

Parameters​

element T

The element to modify.

value sbyte

The low value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetLowValue<T>(T, double)​

Sets lowValue.

public static T SetLowValue<T>(this T element, double value) where T : BaseSlider<double>

Parameters​

element T

The element to modify.

value double

The low value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetLowValue<T>(T, float)​

Sets lowValue.

public static T SetLowValue<T>(this T element, float value) where T : BaseSlider<float>

Parameters​

element T

The element to modify.

value float

The low value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetLowValue<T>(T, int)​

Sets lowValue.

public static T SetLowValue<T>(this T element, int value) where T : BaseSlider<int>

Parameters​

element T

The element to modify.

value int

The low value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetLowValue<T>(T, uint)​

Sets lowValue.

public static T SetLowValue<T>(this T element, uint value) where T : BaseSlider<uint>

Parameters​

element T

The element to modify.

value uint

The low value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetLowValue<T>(T, long)​

Sets lowValue.

public static T SetLowValue<T>(this T element, long value) where T : BaseSlider<long>

Parameters​

element T

The element to modify.

value long

The low value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetLowValue<T>(T, ulong)​

Sets lowValue.

public static T SetLowValue<T>(this T element, ulong value) where T : BaseSlider<ulong>

Parameters​

element T

The element to modify.

value ulong

The low value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetLowValue<T>(T, short)​

Sets lowValue.

public static T SetLowValue<T>(this T element, short value) where T : BaseSlider<short>

Parameters​

element T

The element to modify.

value short

The low value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetLowValue<T>(T, ushort)​

Sets lowValue.

public static T SetLowValue<T>(this T element, ushort value) where T : BaseSlider<ushort>

Parameters​

element T

The element to modify.

value ushort

The low value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetLowValue<T, TValue>(T, TValue)​

Sets lowValue.

public static T SetLowValue<T, TValue>(this T element, TValue value) where T : BaseSlider<TValue> where TValue : IComparable<TValue>

Parameters​

element T

The element to modify.

value TValue

The low value to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

TValue

The value type of the element.

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<float>

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<float>

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.