property top

(r/w) int32 top;

Typ

Zugriff

This property sets and gets the y-coordinate of the upper-left corner of the rectangle. This property is the same as y.
function onSample()
{
    var factory = shell.factory;
    var rect = (factory) ? factory.createRect(10, 10, 800, 600) : null;
    if (rect)
    {
        shell.print("top = " + rect.top);
    }
}