ApiTable
ApiTable is a subclass of ApiDrawing.
Methods
| Method | Returns | Description |
|---|---|---|
| AddColumn | boolean | Adds a new column to the end of the current table. |
| AddRow | ApiTableRow | Adds a new row to the current table. |
| Copy | ApiDrawing | Creates a copy of the specified drawing object. |
| Delete | boolean | Deletes the specified drawing object from the parent. |
| GetClassType | "table" | Returns the type of the ApiTable object. |
| GetHeight | EMU | Returns the height of the current drawing. |
| GetParentPage | ApiPage | Returns the type of the ApiDrawing class. |
| GetPosX | EMU | Gets the x position of the drawing on the page. |
| GetPosY | EMU | Gets the y position of the drawing on the page. |
| GetRotation | number | Returns the rotation angle of the current drawing object. |
| GetRow | ApiTableRow | Returns a row by its index. |
| GetWidth | EMU | Returns the width of the current drawing. |
| MergeCells | ApiTableCell | Merges an array of cells. If merge is successful, it will return merged cell, otherwise "null". Warning: The number of cells in any row and the number of rows in the current table may be changed. |
| RemoveColumn | boolean | Removes a table column with the specified cell. |
| RemoveRow | boolean | Removes a table row with the specified cell. |
| Select | boolean | Selects the current graphic object. |
| SetPosX | boolean | Sets the x position of the drawing on the page. |
| SetPosY | boolean | Sets the y position of the drawing on the page. |
| SetPosition | boolean | Sets the position of the drawing on the page. |
| SetRotation | boolean | Sets the rotation angle to the current drawing object. |
| SetShd | boolean | Specifies the shading which shall be applied to the extents of the current table. |
| SetSize | boolean | Sets the size of the object (image, shape, chart) bounding box. |
| SetTableLook | boolean | Specifies the components of the conditional formatting of the referenced table style (if one exists) which shall be applied to the set of table rows with the current table-level property exceptions. A table style can specify up to six different optional conditional formats [Example: Different formatting for first column], which then can be applied or omitted from individual table rows in the parent table. The default setting is to apply the row and column banding formatting, but not the first row, last row, first column, or last column formatting. |