Skip to main content

Rectangle Class

Contains the size and position of a spreadsheet cell.

Declaration

class Rectangle

Remarks

An instance of the Rectangle class is returned by the getCellBounds(colModelIndex, rowModelIndex) method.

Properties

bottom Property

Gets the y-coordinate of the specified cell’s bottom side.

Declaration

bottom: number

Property Value

Type Description
number

The y-coordinate of the cell’s bottom side.

Remarks

The bottom defines the editor’s absolute position relative to the page. The cell’s bottom value is changed if an end-user scrolls a document (changes the visible cell range).

height Property

Gets the cell’s height value.

Declaration

height: number

Property Value

Type Description
number

The height value.

left Property

Gets the x-coordinate of the specified cell’s left side.

Declaration

left: number

Property Value

Type Description
number

The x-coordinate of the cell’s left side.

Remarks

The left defines the editor’s absolute position relative to the page. The cell’s left value is changed if an end-user scrolls a document (changes the visible cells range).

right Property

Gets the x-coordinate of the specified cell’s right side.

Declaration

right: number

Property Value

Type Description
number

The x-coordinate of the cell’s right side.

Remarks

The right defines the editor’s absolute position relative to the page. The cell’s right value is changed if an end-user scrolls a document (changes the visible cell range).

top Property

Gets the y-coordinate of the specified cell’s top side.

Declaration

top: number

Property Value

Type Description
number

The y-coordinate of the cell’s top side.

Remarks

The top defines the editor’s absolute position relative to the page. The cell’s top value is changed if an end-user scrolls a document (changes the visible cells range).

width Property

Gets the cell’s width value.

Declaration

width: number

Property Value

Type Description
number

The width value.

x Property

Gets the x-coordinate of the specified cell’s left side.

Declaration

x: number

Property Value

Type Description
number

The x-coordinate of the cell’s left side.

Remarks

The x defines the editor’s absolute position relative to the page. The cell’s x value is changed if an end-user scrolls a document (changes the visible cell range).

y Property

Gets the y-coordinate of the specified cell’s top side.

Declaration

y: number

Property Value

Type Description
number

The y-coordinate of the cell’s top side.

Remarks

The y defines the editor’s absolute position relative to the page. The cell’s y value is changed if an end-user scrolls a document (changes the visible cell range).