Returns and sets the style of the object to be either vertical or horizontal.
Object.Orientation [ = enAScrollBarOrientation ]
The Orientation property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AScrollBar |
AScrollBar control |
|
enAScrollBarOrientation |
enumAScrollBarOrientation |
An integer specifying the style of the object, that is, either vertical or horizontal. |
enumAScrollBarOrientation can be one of the following:
|
Name |
Value |
Description |
|
asbHorizontal |
0 * |
The control will have a horizontal appearance. |
|
asbVertical |
1 |
The control will have a vertical appearance. |
The following statement returns the vertical or horizontal orientation of the AScrollBar:
lsb1Orientation = sb1.Orientation
The following statement sets to the vertical orientation of the AScrollBar:
sb1.Orientation = asbVertical