TableElement

Inheritance: java.lang.Object, com.aspose.pdf.tagged.logicalstructure.elements.Element, com.aspose.pdf.tagged.logicalstructure.elements.StructureElement, com.aspose.pdf.tagged.logicalstructure.elements.bls.BLSElement

public final class TableElement extends BLSElement

Represents Table structure element in logical structure.

Constructors

ConstructorDescription
TableElement(TaggedContext taggedContext, IPdfPrimitive pdfEngineEntity)constructor for internal usage only

Methods

MethodDescription
getTable()
getBackgroundColor()Gets or sets the table background color.
setBackgroundColor(Color value)Gets or sets the table background color.
getBorder()Gets or sets the table border.
setBorder(BorderInfo value)Gets or sets the table border.
getAlignment()Gets or sets the table alignment.
setAlignment(HorizontalAlignment value)Gets or sets the table alignment.
getCornerStyle()Gets or sets the styles of the border corners
setCornerStyle(int value)Gets or sets the styles of the border corners
getBroken()Gets or sets table vertical broken;
setBroken(int value)Gets or sets table vertical broken;
getColumnAdjustment()Gets or sets the table column adjustment.
setColumnAdjustment(int value)Gets or sets the table column adjustment.
getColumnWidths()Gets the column widths of the table.
setColumnWidths(String value)Gets the column widths of the table.
getDefaultCellBorder()Gets default cell border.
setDefaultCellBorder(BorderInfo value)Gets default cell border.
getDefaultCellPadding()Gets or sets the default cell padding.
setDefaultCellPadding(MarginInfo value)Gets or sets the default cell padding.
getDefaultCellTextState()Gets or sets the default cell text state.
setDefaultCellTextState(TextState value)Gets or sets the default cell text state.
getDefaultColumnWidth()Gets or sets default column width.
setDefaultColumnWidth(String value)Gets or sets default column width.
isBroken()Gets or sets the table is broken - will be truncated for next page.
setBroken(boolean value)Gets or sets the table is broken - will be truncated for next page.
isBordersIncluded()Gets or sets border included in column widhts.
setBordersIncluded(boolean value)Gets or sets border included in column widhts.
getLeft()Gets or sets the table left coordinate.
setLeft(float value)Gets or sets the table left coordinate.
getTop()Gets or sets the table top coordinate.
setTop(float value)Gets or sets the table top coordinate.
getRepeatingColumnsCount()Gets or sets the maximum columns count for table.
setRepeatingColumnsCount(int value)Gets or sets the maximum columns count for table.
getRepeatingRowsCount()Gets the first rows count repeated for several pages.
setRepeatingRowsCount(int value)Gets the first rows count repeated for several pages.
getRepeatingRowsStyle()Gets the style for repeating rows.
setRepeatingRowsStyle(TextState value)Gets the style for repeating rows.
createTHead()Creates TableTHeadElement and added it to current table.
createTBody()Creates TableTHeadElement and added it to current table.
createTFoot()Creates TableTFootElement and added it to current table.

TableElement(TaggedContext taggedContext, IPdfPrimitive pdfEngineEntity)

public TableElement(TaggedContext taggedContext, IPdfPrimitive pdfEngineEntity)

constructor for internal usage only

Parameters:

ParameterTypeDescription
taggedContextTaggedContextTaggedContext instance
pdfEngineEntityIPdfPrimitiveinternal instance

getTable()

public final Table getTable()

Returns: Table

getBackgroundColor()

public final Color getBackgroundColor()

Gets or sets the table background color.

Returns: Color - Color instance

setBackgroundColor(Color value)

public final void setBackgroundColor(Color value)

Gets or sets the table background color.

Parameters:

ParameterTypeDescription
valueColorColor instance

getBorder()

public final BorderInfo getBorder()

Gets or sets the table border.

Returns: BorderInfo - BorderInfo instance

setBorder(BorderInfo value)

public final void setBorder(BorderInfo value)

Gets or sets the table border.

Parameters:

ParameterTypeDescription
valueBorderInfoBorderInfo instance

getAlignment()

public final HorizontalAlignment getAlignment()

Gets or sets the table alignment.

Returns: HorizontalAlignment - HorizontalAlignment element

setAlignment(HorizontalAlignment value)

public final void setAlignment(HorizontalAlignment value)

Gets or sets the table alignment.

Parameters:

ParameterTypeDescription
valueHorizontalAlignmentHorizontalAlignment element

getCornerStyle()

public final int getCornerStyle()

Gets or sets the styles of the border corners

Returns: int - BorderCornerStyle element

setCornerStyle(int value)

public final void setCornerStyle(int value)

Gets or sets the styles of the border corners

Parameters:

ParameterTypeDescription
valueintBorderCornerStyle element

getBroken()

public final int getBroken()

Gets or sets table vertical broken;

Returns: int - TableBroken element

setBroken(int value)

public final void setBroken(int value)

Gets or sets table vertical broken;

Parameters:

ParameterTypeDescription
valueintTableBroken element

getColumnAdjustment()

public final int getColumnAdjustment()

Gets or sets the table column adjustment.

Returns: int - ColumnAdjustment element

setColumnAdjustment(int value)

public final void setColumnAdjustment(int value)

Gets or sets the table column adjustment.

Parameters:

ParameterTypeDescription
valueintColumnAdjustment element

getColumnWidths()

public final String getColumnWidths()

Gets the column widths of the table.

Returns: java.lang.String - String value

setColumnWidths(String value)

public final void setColumnWidths(String value)

Gets the column widths of the table.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

getDefaultCellBorder()

public final BorderInfo getDefaultCellBorder()

Gets default cell border.

Returns: BorderInfo - BorderInfo instance

setDefaultCellBorder(BorderInfo value)

public final void setDefaultCellBorder(BorderInfo value)

Gets default cell border.

Parameters:

ParameterTypeDescription
valueBorderInfoBorderInfo instance

getDefaultCellPadding()

public final MarginInfo getDefaultCellPadding()

Gets or sets the default cell padding.

Returns: MarginInfo - MarginInfo instance

setDefaultCellPadding(MarginInfo value)

public final void setDefaultCellPadding(MarginInfo value)

Gets or sets the default cell padding.

Parameters:

ParameterTypeDescription
valueMarginInfoMarginInfo instance

getDefaultCellTextState()

public final TextState getDefaultCellTextState()

Gets or sets the default cell text state.

Returns: TextState - TextState instance

setDefaultCellTextState(TextState value)

public final void setDefaultCellTextState(TextState value)

Gets or sets the default cell text state.

Parameters:

ParameterTypeDescription
valueTextStateTextState instance

getDefaultColumnWidth()

public final String getDefaultColumnWidth()

Gets or sets default column width.

Returns: java.lang.String - String value

setDefaultColumnWidth(String value)

public final void setDefaultColumnWidth(String value)

Gets or sets default column width.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

isBroken()

public final boolean isBroken()

Gets or sets the table is broken - will be truncated for next page.

Returns: boolean - boolean value

setBroken(boolean value)

public final void setBroken(boolean value)

Gets or sets the table is broken - will be truncated for next page.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

isBordersIncluded()

public final boolean isBordersIncluded()

Gets or sets border included in column widhts.

Returns: boolean - boolean value

setBordersIncluded(boolean value)

public final void setBordersIncluded(boolean value)

Gets or sets border included in column widhts.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getLeft()

public final float getLeft()

Gets or sets the table left coordinate.

Returns: float - float value

setLeft(float value)

public final void setLeft(float value)

Gets or sets the table left coordinate.

Parameters:

ParameterTypeDescription
valuefloatfloat value

getTop()

public final float getTop()

Gets or sets the table top coordinate.

Returns: float - float value

setTop(float value)

public final void setTop(float value)

Gets or sets the table top coordinate.

Parameters:

ParameterTypeDescription
valuefloatfloat value

getRepeatingColumnsCount()

public final int getRepeatingColumnsCount()

Gets or sets the maximum columns count for table.

Returns: int - int value

setRepeatingColumnsCount(int value)

public final void setRepeatingColumnsCount(int value)

Gets or sets the maximum columns count for table.

Parameters:

ParameterTypeDescription
valueintint value

getRepeatingRowsCount()

public final int getRepeatingRowsCount()

Gets the first rows count repeated for several pages.

Returns: int - int value

setRepeatingRowsCount(int value)

public final void setRepeatingRowsCount(int value)

Gets the first rows count repeated for several pages.

Parameters:

ParameterTypeDescription
valueintint value

getRepeatingRowsStyle()

public final TextState getRepeatingRowsStyle()

Gets the style for repeating rows.

Returns: TextState - TextState instance

setRepeatingRowsStyle(TextState value)

public final void setRepeatingRowsStyle(TextState value)

Gets the style for repeating rows.

Parameters:

ParameterTypeDescription
valueTextStateTextState instance

createTHead()

public final TableTHeadElement createTHead()

Creates TableTHeadElement and added it to current table.

Returns: TableTHeadElement - Created structure element.

createTBody()

public final TableTBodyElement createTBody()

Creates TableTHeadElement and added it to current table.

Returns: TableTBodyElement - Created structure element.

createTFoot()

public final TableTFootElement createTFoot()

Creates TableTFootElement and added it to current table.

Returns: TableTFootElement - Created structure element.