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

TdxSpreadSheetTableViewSelection.Area Property

Returns the area bounding all existing cell selections within a Table View worksheet.

#Declaration

Delphi
property Area: TRect read;

#Property Value

Type
TRect

#Remarks

The Area.Left and Area.Top values store the column and row indexes of the top-left cell within the bounding area. The Area.Right and Area.Bottom fields store the column and row indexes of the bottom-right cell of the area, respectively.

The following example shows the rectangle bounding two selected cell ranges:

The Area property and the Items property with 0 passed as the Index parameter return identical rectangles if the View worksheet has only one selected cell or cell range. Use the Count property to obtain the number of individual cell or cell range selections.

See Also