y([y])

Class: Rectangle. Method inherited from Shape.

Description:

Sets or gets Y position of the shape relative to top edge of its parent component (for Window parent component gets Y position from the top of content area).

Parameters:

Name Type Description

[y]

number

Y position integer.

Returns:

If called without arguments, current Y position is returned; otherwise this shape is returned for method chaining.

Type: number | this

Also See: