UiElement.getYPos

Get the vertical position of the element. The number returned is calculated using the top, left-most pixel of the element including border if one exists.

class UiElement
int
getYPos
(
bool relativeToParent = false
)

Parameters

relativeToParent bool

True to get the position relative to its parent, false for the position on the screen.

Return Value

Type: int

The vertical position of the element.

Meta