Contents - Index - Previous - Next


TableDeleteCell method




Declaration
function TableDeleteCell: Boolean;

Description

Deletes the selected cell(s) from a table.

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

The overall table width is not altered when deleting a cell. Instead, the cell widths are adjusted to accommodate the deleted cell.

The method can delete cells when the selection includes elements in more than one row. The method will also work when all cells in a table are selected, 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.