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

MethodDescription
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 a TableFormat.FillFormat object containing the fill formatting for the Table.

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:

ParameterTypeDescription
columnIndexint
rowIndexint

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:

ParameterTypeDescription
cell1ICellCell to merge.
cell2ICellCell to merge.
allowSplittingbooleanTrue 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:

ParameterTypeDescription
valueint

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:

ParameterTypeDescription
valueboolean

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:

ParameterTypeDescription
valueboolean

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:

ParameterTypeDescription
valueboolean

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:

ParameterTypeDescription
valueboolean

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:

ParameterTypeDescription
valueboolean

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:

ParameterTypeDescription
valueboolean

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:

ParameterTypeDescription
valueboolean

setTextFormat(IPortionFormat source)

public final void setTextFormat(IPortionFormat source)

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

Parameters:

ParameterTypeDescription
sourceIPortionFormatIPortionFormat 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:

ParameterTypeDescription
sourceIParagraphFormatIParagraphFormat 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:

ParameterTypeDescription
sourceITextFrameFormatITextFrameFormat object with necessary properties set.

getFillFormat()

public IFillFormat getFillFormat()

Returns a TableFormat.FillFormat object containing the fill formatting for the Table. Read-only IFillFormat.

Returns: IFillFormat