Paragraph.SetScrollPos

Paragraph.SetScrollPos ( 

string  ObjectName,

number  ScrollPos,

boolean Vertical = true )

Description

Sets the vertical or horizontal scroll bar handle position in a paragraph object.

Parameters

ObjectName

(string) The name of the paragraph object.

ScrollPos

(number) The vertical line position or horizontal position in scroll bar units (approximately 10 pixels) to set the scroll bar handle to.

Note: The first position in a scroll bar is 0 and the end position will depend upon the size of the paragraph object. If you attempt to set a position beyond the current scroll bar range, it's position will be set to either the maximum or minimum possible range position.

Vertical

(boolean) Whether the position will be set for the vertical scroll handle:

VALUE

DESCRIPTION

true

The position will be set for the vertical scroll handle. (Default)

false

The position will be set for the horizontal scroll handle.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions