setRange

fun setRange(min: <Error class: unknown class>, max: <Error class: unknown class>)

Sets the minimum and maximum allowable values for @self.

If the current value is outside this range, it will be adjusted to fit within the range, otherwise it will remain unchanged.

Since

1.4

Parameters

min

minimum allowable value

max

maximum allowable value