[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Forms' (#lcl)

# TControlScrollBar.Range

The size of the logical display area on the associated control for the scroll bar orientation.

## Declaration

Source position: forms.pp line 161

`published property TControlScrollBar.Range : Integer read GetRange write SetRange stored IsRangeStored default 0;`

## Description

Range is an Integer property with the number of pixels needed for the logical display area on the control where the scroll bar is used. It measures the size of the scrolled content in the direction indicated by the Kind property. The default value for the property is 0, and indicates the dimensions for the scrollable content is smaller than the Page size for the scroll bar.

The values in Range and other properties are updated when the associated control recalculates sizes and positions for its scroll bars.

Use Position to determine the origin for the scrollable content displayed in the visible area on the associated control.

Use Page to determine the number of pixels along the scroll bar orientation needed for the visible area on the associated control.