Determines the upper limit for values in a component.

Property of

Progress, ScrollBar, Slider, SpinBox

Description

Use rangeMax in combination with rangeMin to specify a range restriction for values entered into a component. ( rangeMax sets the upper limit and rangeMin sets the lower limit.) For example, an application that lets the user input a percentage would prevent the input of a value less than 0 or greater than 100. The same ranges would apply for a Progress component showing percent complete.

In a SpinBox component, if the value is too high, the value is set to rangeMax. SpinBox components allow both numbers and dates; the rangeMax must be the same data type. The Progress, Slider, and ScrollBar allow numbers only. rangeMax must be greater than rangeMin.

Note

Range restrictions in a SpinBox have effect only when the rangeRequired property is true.