Specifies the location of the specified object upper left corner.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
set the topLeft of object to left,top
# Examples
set the topLeft of player 1 to 0,0
set the topLeft of last field to the bottomRight of field 1
# Description
The topLeft of a stack is in absolute coordinates. The first item (the left) of a card's topLeft property is always zero; the second item (the top) is always zero. The topLeft of a group or control is in relative coordinates.
In window coordinates, the point 0,0 is at the top left of the stack window. In screen coordinates, the point 0,0 is at the top left of the screen.
Changing the topLeft of an object moves it to the new position without resizing it. To change an object size, set its height, width, or rectangle properties.
>*Important:* The order of the top and left parameters is > reversed compared to the property name: left comes first, then top.
# Tags
ui,
# See
- **property:** left, height, topRight, properties, width, pixels - **glossary:** property, absolute coordinates, read-only, expression, relative coordinates, parameter, integer, evaluate, object - **keyword:** card, item, point, rectangle, top, control - **constant:** left - **object:** stack - **command:** group - **function:** selectedLoc, stacks