Class Point

Creates an object that contains a set of integer coordinates that represent a position. The getLocation method of the Sys.UI.DomElement class returns a Point object.

see

{@link http://msdn.microsoft.com/en-us/library/bb383992(v=vs.100).aspx} *

Index

Constructor methods

Properties

Constructor methods

constructor(x: number, y: number): Point

Creates an object that contains a set of integer coordinates that represent a position.

Parameters

  • x: number

    The number of pixels between the location and the left edge of the parent frame.

  • y: number

    The number of pixels between the location and the top edge of the parent frame.

Returns

Point

Properties

public x: number

Gets the x-coordinate of a Sys.UI.Point object in pixels. This property is read-only.

returns

A number that represents the x-coordinate of the Point object in pixels.

public y: number

Gets the y-coordinate of a Sys.UI.Point object in pixels. This property is read-only.

returns

A number that represents the y-coordinate of the Point object in pixels.