Contents - Index - Previous - Next


TableDeleteRow method




Declaration
function TableDeleteRow: Boolean;

Description

Deletes from a table all rows containing selected elements.

The selection or insertion point must be within one or more cells in a table. If nothing is selected, the current row is the one in which the insertion point appears. If the selection includes more than one row, all rows containing any portion of a selection will be deleted - it is not necessary that the entire contents of a row be selected.

When a row is deleted, the overall table height is reduced by the height of the deleted row(s).

The method can delete all rows in a table (if all rows in the table are selected) or the one and only row in a table (if the table consists of a single row), effectively deleting the table itself.

Returns True on success. Returns False if the selection or insertion point is not inside a table, if the insertion point is within the table caption, or if the entire table is selected.