ApiTable
ApiTable is a subclass of ApiDrawing.
Methods
| Method | Returns | Description |
|---|---|---|
| AddColumn | None | 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. |
| Fill | boolean | Sets the fill formatting properties to the current graphic object. |
| GetClassType | "table" | Returns the type of the ApiTable object. |
| GetFlipH | boolean | null | Get horizontal flip of current drawing. |
| GetFlipV | boolean | null | Get vertical flip of current drawing. |
| GetHeight | EMU | Returns the height of the current drawing. |
| GetHyperlink | ApiHyperlink | null | Returns the hyperlink from the current drawing object (shape or image). |
| GetInternalId | string | Returns an internal ID of the current drawing object. |
| GetLockValue | boolean | Returns the lock value for the specified lock type of the current drawing. |
| GetName | string | Returns the name of the current drawing. |
| GetParent | ApiSlide | ApiLayout | ApiMaster | null | Returns the drawing parent object. |
| GetParentLayout | ApiLayout | null | Returns the drawing parent slide layout. |
| GetParentMaster | ApiMaster | null | Returns the drawing parent slide master. |
| GetParentSlide | ApiSlide | null | Returns the drawing parent slide. |
| GetPlaceholder | ApiPlaceholder | null | Returns a placeholder from the current drawing object. |
| GetPosX | EMU | Gets the x position of the drawing on the slide. |
| GetPosY | EMU | Gets the y position of the drawing on the slide. |
| 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. |
| ReplacePlaceholder | boolean | Replaces the placeholder by a drawing on the slide. |
| Select | boolean | Selects the current graphic object. |
| SetFlipH | boolean | Sets the horizontal flip of the current drawing. |
| SetFlipV | boolean | Sets the vertical flip of the current drawing. |
| SetHyperlink | boolean | Sets a hyperlink to the current drawing object (shape or image). Pass null to remove the hyperlink. |
| SetLockValue | boolean | Sets the lock value to the specified lock type of the current drawing. |
| SetName | boolean | Sets the name of the current drawing. If another drawing with the same name already exists, that drawing's name will be reset to a default auto-generated name. |
| SetOutLine | boolean | Sets the outline properties to the specified graphic object. |
| SetPlaceholder | boolean | Sets the specified placeholder to the current drawing object. |
| SetPosX | boolean | Sets the x position of the drawing on the slide. |
| SetPosY | boolean | Sets the y position of the drawing on the slide. |
| SetPosition | None | Sets the position of the drawing on the slide. |
| SetRotation | boolean | Sets the rotation angle to the current drawing object. |
| SetShd | None | Specifies the shading which shall be applied to the extents of the current table. |
| SetSize | None | Sets the table size. |
| SetTableLook | None | 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. |
| ToJSON | JSON | Converts the ApiTable object into the JSON object. |
| Unselect | boolean | Removes the current graphic object from the selection. |