orientation

Reports whether a scrollbar is vertical or horizontal--that is, whether its height or width property is greater.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.0 Security:

# Syntax

get the orientation of scrollbar

# Examples

if the orientation of scrollbar 2 is vertical then beep

# Description

Use the orientation property to find out whether a scrollbar is horizontal or vertical.

If the scrollbar's height is greater than or equal to its width, the scrollbar is vertical. If the width is greater than the height, the scrollbar is horizontal.

To change a scrollbar's orientation, change its width and height properties.

# Tags

ui,

# See

- **keyword:** scrollbar - **glossary:** property - **property:** height, properties, rectangle, width