Vcl.Forms.TControlScrollBar.Range

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Range: Integer read FRange write SetRange stored IsRangeStored default 0;

C++

__property int Range = {read=FRange, write=SetRange, stored=IsRangeStored, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TControlScrollBar

Description

Determines how far the scrolling region of the associated control can move.

Range represents the virtual size (in pixels) of the associated control's client area. For example, if the Range of a form's horizontal scroll bar is set to 500, and the width of the form is 200, the scroll bar's Position can vary from 0 to 300.

If the Range of a horizontal scroll bar is less than the width of the form or scroll box, no horizontal scroll bar appears. If the Range of a vertical scroll bar is less than the height of the form or scroll box, no vertical scroll bar appears.

The value of Range is set automatically, but can be overridden in the Object Inspector or in program code.

See Also

Code Examples