TdxSpreadSheetTableViewSelection.Area Property
Returns the area bounding all existing cell selections within a Table View worksheet.
Declaration
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