RectangleSize class
Provides an object that describes a rectangle. An object of this type is required as a parameter in some methods.
RectangleSize method
Syntax
let obj = new RectangleSize(size);
let obj = new RectangleSize(width, height);
Parameters
size
Type: RectangleSizePlain
The dimensions of the rectangle.
width
Type: number
The width of the rectangle in pixels.
height
Type: number
The height of the rectangle in pixels.
Return value
Type: RectangleSize
height property
Syntax
obj.height = value;
value = obj.height;
Type: number
width property
Syntax
obj.width = value;
value = obj.width;
Type: number