Data Types

rectangle

Supported By

Properties

left, top, right, bottom, topLeft, bottomRight, botRight, location, loc, width, height

Description

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

Notes

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

The string representation of a rectangle 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

rect