.. _Point: ================================================ Point ================================================ Description ----------- Defines the location of a window or UI element. Contains a 2-element array. Specifies the origin point of an element as horizontal and vertical pixel offsets from the origin of the element's coordinate space. A Point object is created when you set an element?s location property. You can set the property using a JavaScript object with properties named x and y, or an array with 2 values in the order [x, y]. Properties ^^^^^^^^^^ +--------------------------------------+----------------------------------------------------------------------------------------------+ | :ref:`left` readonly | The left coordinate. | +--------------------------------------+----------------------------------------------------------------------------------------------+ | :ref:`length` readonly | The array length. | +--------------------------------------+----------------------------------------------------------------------------------------------+ | :ref:`top` readonly | The top coordinate. | +--------------------------------------+----------------------------------------------------------------------------------------------+ | :ref:`x` readonly | The horizontal coordinate, a pixel offset from the origin of the element's coordinate space. | +--------------------------------------+----------------------------------------------------------------------------------------------+ | :ref:`y` readonly | The vertical coordinate, a pixel offset from the origin of the element's coordinate space. | +--------------------------------------+----------------------------------------------------------------------------------------------+ .. container:: hide .. toctree:: :hidden: :maxdepth: 1 Point/x.rst Point/y.rst Point/left.rst Point/top.rst Point/length.rst