Data Types

rect

Supported By

Properties

left, top, right, bottom, topLeft, topRight, bottomLeft, botLeft, bottomRight, botRight, location, loc, center, width, height

Description

The rect data type represents a rectangle in a Cartesian coordinate system with integer coordinates.

Notes

The string representation of a rect is the string representations of the left, top, right, and bottom coordinates, in order, delimited by commas.

The string representation of a rect always includes a comma; it does not depend on the setting of the itemDelimiter property.

Compatibility

In HyperTalk, you can test for a rectangle with the is an operator, but the test is broken: if the value is not a comma-delimited list of integers, the expression will trigger an "Expected integer here" script error instead of evaluating to false.

Synonym

rectangle