Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Rectangle Class

Contains the size and position of a spreadsheet cell.

#Declaration

TypeScript
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

TypeScript
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

TypeScript
height: number

#Property Value

Type Description
number

The height value.

#left Property

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

#Declaration

TypeScript
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

TypeScript
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

TypeScript
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

TypeScript
width: number

#Property Value

Type Description
number

The width value.

#x Property

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

#Declaration

TypeScript
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

TypeScript
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).