formattedRect

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
get the formattedRect of {<card> | <group>}
get the formattedRect of <chunk> of <field>
Associationsfield, group, card
Summary

Reports the rectangle that surrounds all the objects in a card or group.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
put the formattedRect of group "Nav Buttons" into rectToSelect
Values
NameTypeDescription
Value

The formattedRect of a group or card consists of four integers, separated by commas. This property is read-only and cannot be set.

RelatedKeyword: card, items, field
Property: visible, backSize, formattedLeft
Command: group
Glossary: object, property, chunk
Description

Use the formattedRect property to find the boundary of a group or chunk, or to determine the screen location of a chunk of text.

If you specify a card or group, the formattedRect reports the smallest rectangle that encloses all the object in that group or card. (Objects whose visible property is false are ignored.) The four items in the rectangle are: 1. horizontal distance from the left edge of the stack to the left edge of the rectangle 2. vertical distance from the top edge of the stack to the top edge of the rectangle 3. horizontal distance from the left edge of the stack to the right edge of the rectangle 4. vertical distance from the top edge of the stack to the bottom edge of the rectangle

The formattedRect of a chunk in a field is the smallest rectangle that encloses the entire chunk.

Tagsui