topRight

Specifies the location of the specified object upper right corner.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the topRight of object to right, top

# Examples

set the topRight of this stack to 0,20

# Description

Use the topRight property to change the placement of a control or window.

The topRight of a stack is in absolute coordinates. The first item (the right) of a card topRight property is always the width of the stack window; the second item (the top) is always zero. The topRight 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 topRight 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 right parameters > is reversed compared to the property name: right comes first, then > top.

# Tags

ui,

# See

- **property:** pixels, rectangle, height, bottomLeft, bottomRight, location, width, properties, topLeft - **glossary:** object, property, stack window, absolute coordinates, read-only, expression, relative coordinates, parameter, integer, evaluate - **keyword:** card, item, point, rectangle, top, control - **constant:** right - **object:** stack, card - **command:** group - **function:** stacks