# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
set the endValue of scrollbar to number
# Examples
set the endValue of last scrollbar to 100
# Description
Use the startValue and endValue properties to set the scale of the scrollbar.
If the style of the scrollbar is scale, the endValue is the value of the thumbPosition when the scrollbar thumb is all the way to the bottom (for a vertical scrollbar) or right (for a horizontal scrollbar).
If the style of the scrollbar is "scrollbar" or "progress", then when the scrollbar thumb is all the way to the end of the scrollbar, the thumbPosition is the scrollbar endValue minus the thumbSize.
Setting the endValue to a value less than the scrollbar thumbSize locks the scrollbar thumb to the top (or left) of the scrollbar, preventing scrolling.
# Tags
ui,
# See
- **property:** showValue, properties, thumbSize, thumbPosition - **message:** scrollbarLineInc - **keyword:** scrollbar, integer - **constant:** scrollbarFactor - **function:** value - **glossary:** scrollbar thumb, lock, property - **object:** scrollbar