API Documentation > CorelDRAW > 2025-v26
TableShape class
Syntax:
Class TableShape
Remarks:
The TableShape class represents the table-specific settings for a shape (or Shape object). Tables are created through the Layer.CreateCustomShape method. The TableShape class, and the following table-related classes, are available to you, although they are not directly integrated into the CorelDRAW object model: TableBorders TableCell TableCellRange TableCells TableColumn TableColumns TableRow TableRows The properties and methods of the TableShape class are accessed through the Shape.Custom property. For a relevant code example, see Layer.CreateCustomShape.
Properties:
Name Description
Borders Returns the table border settings
Cells Returns a collection of cells of the table
CellSpacingX Specifies the horizontal cell spacing
CellSpacingY Specifies the vertical cell spacing
Columns Returns a collection of columns of the table
Rows Returns a collection of rows of the table
Selection Returns the selected cells
SeparatedBorders Specifies whether the cell borders are separated or collapsed
TypeID
Methods:
Name Description
AddColumn Adds a table column
AddRow Adds a table row
Cell Returns the specified cell of the table
CellRange Returns a range of cells of the table
ClearSelection Deselects all the cells in the table
ConvertToText Converts the table to text
CreateEmptyCellRange Creates an empty cell range object
Delete Deletes the table
Select Selects all the cells in the table
SetCellSpacing Sets both horizontal and vertical cell spacing