Table

Overview

Table is a class in Aspose.Slides FOSS for Java. Inherits from: GeometryShape, ITable.

Represents a table shape on a slide.

Properties

NameTypeAccessDescription
rowsIRowCollectionRead
columnsIColumnCollectionRead
tableFormatITableFormatReadProperty provides access to the table’s format settings
stylePresetTableStylePresetReadProperty gets or sets the table’s style preset
rightToLeftbooleanReadProperty gets or sets the right‑to‑left layout flag
firstRowbooleanReadProperty gets or sets whether the first row has special formatting
firstColbooleanRead
lastRowbooleanRead
lastColbooleanReadProperty gets or sets whether the last column has special formatting
horizontalBandingbooleanReadProperty gets or sets horizontal banding state
verticalBandingbooleanReadProperty gets or sets vertical banding state
graphicalObjectLockIGraphicalObjectLockReadProperty provides the lock controlling table modifications

Methods

SignatureDescription
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()ITableFormatReturns the table’s formatting settings
getStylePreset()TableStylePreset
setStylePreset(value: TableStylePreset)
isRightToLeft()booleanIndicates whether the table layout is right‑to‑left
setRightToLeft(value: boolean)Sets the table layout direction to right‑to‑left when true
isFirstRow()booleanIndicates if the first row has special formatting
setFirstRow(value: boolean)
isFirstCol()booleanIndicates if the first column has special formatting
setFirstCol(value: boolean)
isLastRow()booleanIndicates if the last row has special formatting
setLastRow(value: boolean)
isLastCol()booleanIndicates if the last column has special formatting
setLastCol(value: boolean)
isHorizontalBanding()booleanIndicates if horizontal banding is applied
setHorizontalBanding(value: boolean)Toggles horizontal banding on the table
isVerticalBanding()booleanIndicates if vertical banding is applied
setVerticalBanding(value: boolean)Toggles vertical banding on the table
mergeCells(cell1: ICell, cell2: ICell, allowSplitting: boolean)ICellMerges two cells, optionally allowing splitting, and returns the resulting cell
asIGraphicalObject()IGraphicalObjectReturns the table as an IGraphicalObject
asIBulkTextFormattable()IBulkTextFormattableReturns the table as an IBulkTextFormattable
getGraphicalObjectLock()IGraphicalObjectLockReturns the lock object controlling table editing
setTextFormat(source: Object)