Table
Overview
Table is a class in Aspose.Slides FOSS for Java.
Inherits from: GeometryShape, ITable.
Represents a table shape on a slide.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
rows | IRowCollection | Read | |
columns | IColumnCollection | Read | |
tableFormat | ITableFormat | Read | Property provides access to the table’s format settings |
stylePreset | TableStylePreset | Read | Property gets or sets the table’s style preset |
rightToLeft | boolean | Read | Property gets or sets the right‑to‑left layout flag |
firstRow | boolean | Read | Property gets or sets whether the first row has special formatting |
firstCol | boolean | Read | |
lastRow | boolean | Read | |
lastCol | boolean | Read | Property gets or sets whether the last column has special formatting |
horizontalBanding | boolean | Read | Property gets or sets horizontal banding state |
verticalBanding | boolean | Read | Property gets or sets vertical banding state |
graphicalObjectLock | IGraphicalObjectLock | Read | Property provides the lock controlling table modifications |
Methods
| Signature | Description |
|---|---|
Table() | Creates an empty Table. |
Table(xmlElement: Element, saveCallback: Runnable) | Creates a Table backed by the given XML element (a {@code <p:graphicFrame>}). |
initInternal(xmlElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide) | Two-phase initialization for this table shape. |
getRows() → IRowCollection | |
getColumns() → IColumnCollection | |
getTableFormat() → ITableFormat | Returns the table’s formatting settings |
getStylePreset() → TableStylePreset | |
setStylePreset(value: TableStylePreset) | |
isRightToLeft() → boolean | Indicates whether the table layout is right‑to‑left |
setRightToLeft(value: boolean) | Sets the table layout direction to right‑to‑left when true |
isFirstRow() → boolean | Indicates if the first row has special formatting |
setFirstRow(value: boolean) | |
isFirstCol() → boolean | Indicates if the first column has special formatting |
setFirstCol(value: boolean) | |
isLastRow() → boolean | Indicates if the last row has special formatting |
setLastRow(value: boolean) | |
isLastCol() → boolean | Indicates if the last column has special formatting |
setLastCol(value: boolean) | |
isHorizontalBanding() → boolean | Indicates if horizontal banding is applied |
setHorizontalBanding(value: boolean) | Toggles horizontal banding on the table |
isVerticalBanding() → boolean | Indicates if vertical banding is applied |
setVerticalBanding(value: boolean) | Toggles vertical banding on the table |
mergeCells(cell1: ICell, cell2: ICell, allowSplitting: boolean) → ICell | Merges two cells, optionally allowing splitting, and returns the resulting cell |
asIGraphicalObject() → IGraphicalObject | Returns the table as an IGraphicalObject |
asIBulkTextFormattable() → IBulkTextFormattable | Returns the table as an IBulkTextFormattable |
getGraphicalObjectLock() → IGraphicalObjectLock | Returns the lock object controlling table editing |
setTextFormat(source: Object) |