Contents - Index - Previous - Next


TableDeleteColumn method




Declaration
function TableDeleteColumn: Boolean;

Description

Deletes the selected column(s) from a table.

The selection or insertion point must be within a column in a table. If nothing is selected, the current column is the one in which the insertion point appears, and the one that will be deleted.

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

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

Returns True on success. Returns False if the selection or insertion point is not within a column in a table.