Class: Rectangle

Rectangle

Represents a rectangle with origin xy position, width and height

new Rectangle

Parameters:
Name Type Description
x Number The position of left side of rectangle.
y Number The position of top side of rectangle.
width Number Amount of rectangle width.
height Number Amount of rectangle height.
Properties:
Name Type Description
x Number The position of left side of rectangle.
y Number The position of top side of rectangle.
width Number Amount of rectangle width.
height Number Amount of rectangle height.
Source:
  • ../../src/teechart.js, line 141

Methods

<static> Rectangle#set

Sets Rectangle properties.

Parameters:
Name Type Description
x Number The position of left side of rectangle.
y Number The position of top side of rectangle.
width Number Amount of rectangle width.
height Number Amount of rectangle height.
Source:
  • ../../src/teechart.js, line 154

<static> Rectangle#setFrom

Sets Rectangle properties from rectangle r parameter.

Parameters:
Name Type Description
r Tee.Rectangle The Rectangle instance to copy values from.
Source:
  • ../../src/teechart.js, line 167