TdxSpreadSheetMergedCellList.DeleteItemsInArea(TRect,Boolean) Method
Removes all merged cell objects located within the specified Table View worksheet’s area.
Declaration
procedure DeleteItemsInArea(const AArea: TRect; AEnclosedItemsOnly: Boolean = True);
Parameters
Name | Type |
---|---|
AArea | TRect |
AEnclosedItemsOnly | Boolean |
Remarks
Call this procedure to delete the merged cells within the boundaries passed as the AArea parameter.
The optional AEnclosedItemsOnly parameter allows you to specify whether the DeleteItemsInArea procedure deletes only those merged cells that are fully contained within the indicated bounds. If the AEnclosedItemsOnly parameter is set to False, even the merged cells intersected by the specified bounds, are deleted.
To delete all previously merged cells simultaneously, call the Clear procedure. You can also call the Delete procedure to remove a single specified item within the merged cell object collection.
Note
To add a new merged cell object to the current collection, invoke the Add procedure.