Paragraph.GetScrollRange

table Paragraph.GetScrollRange (

string ObjectName,

boolean Vertical = true )

Description

Returns a table containing the range of the vertical or horizontal scroll bar.

Parameters

ObjectName

(string) The name of the paragraph object.

Vertical

(boolean) Whether the range will be returned for the vertical scroll bar:

VALUE

DESCRIPTION

true

The range will be returned for the vertical scroll bar. (Default)

false

The range will be returned for the horizontal scroll bar.

Returns

(table) A table containing the vertical or horizontal scroll bar range, indexed by values "Min" and "Max." The vertical range will contain the range of lines and the horizontal range will contain the range of horizontal scroll bar units (1 unit is approximately 10 pixels). If an error occurs, nil is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions