RectanglePropertyTop

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the top of <mRect>
Associationscom.livecode.canvas
Summary

The top edge of a rectangle value.

Parameters
NameTypeDescription
mRect

An expression which evaluates to a rectangle.

Example
variable tRect
put rectangle [50,100,150,200] into tRect

// Store the top edge of the rectangle in a variable
variable tTop
put the top of tRect into tTop

// Move the rectangle vertically to a new position.
set the top of tRect to 120
Description

The location along the y-axis of the top edge of the rectangle.

Note: Setting the top of a rectangle will reposition it without altering the width or height.

Tagscanvas