Table

Inheritance: java.lang.Object, com.aspose.slides.Shape, com.aspose.slides.GraphicalObject

All Implemented Interfaces: com.aspose.slides.ITable

public final class Table extends GraphicalObject implements ITable

Represents a table on a slide.

Methods

Method Description
get_Item(int columnIndex, int rowIndex) Returns the cell at the specified column and row indexes.
getRows() Returns the collectoin of rows.
getColumns() Returns the collectoin of columns.
getTableFormat() Returns the TableFormat object that contains formatting properties for this table.
mergeCells(ICell cell1, ICell cell2, boolean allowSplitting) Merges neighbour cells.
getStylePreset() Gets or sets builtin table style.
setStylePreset(int value) Gets or sets builtin table style.
getRightToLeft() Determines whether the table has right to left reading order.
setRightToLeft(boolean value) Determines whether the table has right to left reading order.
getFirstRow() Determines whether the first row of a table has to be drawn with a special formatting.
setFirstRow(boolean value) Determines whether the first row of a table has to be drawn with a special formatting.
getFirstCol() Determines whether the first column of a table has to be drawn with a special formatting.
setFirstCol(boolean value) Determines whether the first column of a table has to be drawn with a special formatting.
getLastRow() Determines whether the last row of a table has to be drawn with a special formatting.
setLastRow(boolean value) Determines whether the last row of a table has to be drawn with a special formatting.
getLastCol() Determines whether the last column of a table has to be drawn with a special formatting.
setLastCol(boolean value) Determines whether the last column of a table has to be drawn with a special formatting.
getHorizontalBanding() Determines whether the even rows has to be drawn with a different formatting.
setHorizontalBanding(boolean value) Determines whether the even rows has to be drawn with a different formatting.
getVerticalBanding() Determines whether the even columns has to be drawn with a different formatting.
setVerticalBanding(boolean value) Determines whether the even columns has to be drawn with a different formatting.
setTextFormat(IPortionFormat source) Sets defined portion format properties to all table cells’ portions.
setTextFormat(IParagraphFormat source) Sets defined paragraph format properties to all table cells’ paragraphs.
setTextFormat(ITextFrameFormat source) Sets defined text frame format properties to all table cells’ text frames.
getFillFormat() Returns the FillFormat object that contains fill formatting properties for a shape.

get_Item(int columnIndex, int rowIndex)

public final ICell get_Item(int columnIndex, int rowIndex)

Returns the cell at the specified column and row indexes. Read-only Cell.

Parameters:

Parameter Type Description
columnIndex int
rowIndex int

Returns: ICell

getRows()

public final IRowCollection getRows()

Returns the collectoin of rows. Read-only IRowCollection.

Returns: IRowCollection

getColumns()

public final IColumnCollection getColumns()

Returns the collectoin of columns. Read-only IColumnCollection.

Returns: IColumnCollection

getTableFormat()

public final ITableFormat getTableFormat()

Returns the TableFormat object that contains formatting properties for this table. Read-only ITableFormat.

Returns: ITableFormat

mergeCells(ICell cell1, ICell cell2, boolean allowSplitting)

public final ICell mergeCells(ICell cell1, ICell cell2, boolean allowSplitting)

Merges neighbour cells.

Parameters:

Parameter Type Description
cell1 ICell Cell to merge.
cell2 ICell Cell to merge.
allowSplitting boolean True to allow cells splitting.

Returns: ICell - Merged cell.

getStylePreset()

public final int getStylePreset()

Gets or sets builtin table style. Read/write TableStylePreset.

Returns: int

setStylePreset(int value)

public final void setStylePreset(int value)

Gets or sets builtin table style. Read/write TableStylePreset.

Parameters:

Parameter Type Description
value int

getRightToLeft()

public final boolean getRightToLeft()

Determines whether the table has right to left reading order. Read-write boolean.

Returns: boolean

setRightToLeft(boolean value)

public final void setRightToLeft(boolean value)

Determines whether the table has right to left reading order. Read-write boolean.

Parameters:

Parameter Type Description
value boolean

getFirstRow()

public final boolean getFirstRow()

Determines whether the first row of a table has to be drawn with a special formatting. Read/write boolean.

Returns: boolean

setFirstRow(boolean value)

public final void setFirstRow(boolean value)

Determines whether the first row of a table has to be drawn with a special formatting. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getFirstCol()

public final boolean getFirstCol()

Determines whether the first column of a table has to be drawn with a special formatting. Read/write boolean.

Returns: boolean

setFirstCol(boolean value)

public final void setFirstCol(boolean value)

Determines whether the first column of a table has to be drawn with a special formatting. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getLastRow()

public final boolean getLastRow()

Determines whether the last row of a table has to be drawn with a special formatting. Read/write boolean.

Returns: boolean

setLastRow(boolean value)

public final void setLastRow(boolean value)

Determines whether the last row of a table has to be drawn with a special formatting. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getLastCol()

public final boolean getLastCol()

Determines whether the last column of a table has to be drawn with a special formatting. Read/write boolean.

Returns: boolean

setLastCol(boolean value)

public final void setLastCol(boolean value)

Determines whether the last column of a table has to be drawn with a special formatting. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getHorizontalBanding()

public final boolean getHorizontalBanding()

Determines whether the even rows has to be drawn with a different formatting. Read/write boolean.

Returns: boolean

setHorizontalBanding(boolean value)

public final void setHorizontalBanding(boolean value)

Determines whether the even rows has to be drawn with a different formatting. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getVerticalBanding()

public final boolean getVerticalBanding()

Determines whether the even columns has to be drawn with a different formatting. Read/write boolean.

Returns: boolean

setVerticalBanding(boolean value)

public final void setVerticalBanding(boolean value)

Determines whether the even columns has to be drawn with a different formatting. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

setTextFormat(IPortionFormat source)

public final void setTextFormat(IPortionFormat source)

Sets defined portion format properties to all table cells’ portions.

Parameters:

Parameter Type Description
source IPortionFormat IPortionFormat object with necessary properties set.

setTextFormat(IParagraphFormat source)

public final void setTextFormat(IParagraphFormat source)

Sets defined paragraph format properties to all table cells’ paragraphs.

Parameters:

Parameter Type Description
source IParagraphFormat IParagraphFormat object with necessary properties set.

setTextFormat(ITextFrameFormat source)

public final void setTextFormat(ITextFrameFormat source)

Sets defined text frame format properties to all table cells’ text frames.

Parameters:

Parameter Type Description
source ITextFrameFormat ITextFrameFormat object with necessary properties set.

getFillFormat()

public IFillFormat getFillFormat()

Returns the FillFormat object that contains fill formatting properties for a shape. Note: can return null for certain types of shapes which don’t have fill properties. Read-only IFillFormat.

Returns: IFillFormat