public final class Table extends BaseParagraph
Represents a table that can be added to the page.
| Constructor and Description |
|---|
Table()
Default ctor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
deepClone()
Clone the table.
|
static void |
drawRoundedRectangle(GraphInfo info,
Point topLeft,
Point rightBottom,
List<Operator> operators,
double radius)
Add operators for rectangle.
|
HorizontalAlignment |
getAlignment()
Gets the table alignment.
|
Color |
getBackgroundColor()
Gets table background color
|
BorderInfo |
getBorder()
Gets the border.
|
TextFragment |
getBreakText()
Gets break text for table
|
int |
getBroken()
Gets or sets table vertial broken;
|
ColumnAdjustment |
getColumnAdjustment()
Gets the table column adjustment.
|
static double |
getColumnWidth(String stringColumnWidth)
Get column width
|
String |
getColumnWidths()
Gets the column widths of the table.
|
BorderCornerStyle |
getCornerStyle()
Gets the styles of the border corners
|
BorderInfo |
getDefaultCellBorder()
Gets default cell border;
|
MarginInfo |
getDefaultCellPadding()
Gets the default cell padding.
|
TextState |
getDefaultCellTextState()
Gets the default cell text state.
|
String |
getDefaultColumnWidth()
Gets default cell border;
|
double |
getHeight()
Get height.
|
double |
getHeight(Page parentPage)
Get height.
|
float |
getLeft()
Gets the table left coordinate.
|
int |
getRepeatingColumnsCount()
Gets or sets the maximum columns count for table
|
int |
getRepeatingRowsCount()
Gets the first rows count repeated for several pages
|
TextState |
getRepeatingRowsStyle()
Gets the style for repeating rows
|
Rows |
getRows()
Gets the rows of the table.
|
float |
getTop()
Gets the table top coordinate.
|
double |
getWidth()
Get width.
|
boolean |
isBordersIncluded()
Gets border included in column widths.
|
boolean |
isBroken()
Gets the table is broken - will be truncated for next page.
|
void |
setAlignment(HorizontalAlignment value)
Sets the table alignment.
|
void |
setBackgroundColor(Color value)
Sets table background color
|
void |
setBorder(BorderInfo value)
Sets the border.
|
void |
setBordersIncluded(boolean value)
Sets border included in column widths.
|
void |
setBreakText(TextFragment value)
Sets break text for table
|
void |
setBroken(boolean value)
Sets the table is broken - will be truncated for next page.
|
void |
setBroken(int value)
Gets or sets table vertial broken;
|
void |
setColumnAdjustment(ColumnAdjustment value)
Sets the table column adjustment.
|
void |
setColumnTextState(int colNumber,
TextState textState)
Set height.
|
void |
setColumnWidths(String value)
Gets the column widths of the table.
|
void |
setCornerStyle(BorderCornerStyle value)
Gets or sets the styles of the border corners
|
void |
setDefaultCellBorder(BorderInfo value)
Gets default cell border;
|
void |
setDefaultCellPadding(MarginInfo value)
Sets the default cell padding.
|
void |
setDefaultCellTextState(TextState value)
Sets the default cell text state.
|
void |
setDefaultColumnWidth(String value)
Gets default cell border;
|
void |
setLeft(float value)
Sets the table left coordinate.
|
void |
setRepeatingColumnsCount(int value)
Gets or sets the maximum columns count for table
|
void |
setRepeatingRowsCount(int value)
Gets the first rows count repeated for several pages
|
void |
setRepeatingRowsStyle(TextState value)
Gets the style for repeating rows
|
void |
setTop(float value)
Sets the table top coordinate.
|
getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndexpublic final Color getBackgroundColor()
Gets table background color
public final void setBackgroundColor(Color value)
Sets table background color
value - Color objectpublic final TextFragment getBreakText()
Gets break text for table
public final void setBreakText(TextFragment value)
Sets break text for table
value - TextFragment objectpublic final BorderCornerStyle getCornerStyle()
Gets the styles of the border corners
BorderCornerStylepublic final void setCornerStyle(BorderCornerStyle value)
Gets or sets the styles of the border corners
value - BorderCornerStyle valueBorderCornerStylepublic final TextState getRepeatingRowsStyle()
Gets the style for repeating rows
public final void setRepeatingRowsStyle(TextState value)
Gets the style for repeating rows
value - TextState objectpublic final int getRepeatingColumnsCount()
Gets or sets the maximum columns count for table
public final void setRepeatingColumnsCount(int value)
Gets or sets the maximum columns count for table
value - int valuepublic final int getRepeatingRowsCount()
Gets the first rows count repeated for several pages
public final void setRepeatingRowsCount(int value)
Gets the first rows count repeated for several pages
value - int valuepublic final String getColumnWidths()
Gets the column widths of the table.
public final void setColumnWidths(String value)
Gets the column widths of the table.
value - String valuepublic final int getBroken()
Gets or sets table vertial broken;
TableBrokenpublic final void setBroken(int value)
Gets or sets table vertial broken;
value - TableBroken valueTableBrokenpublic final BorderInfo getDefaultCellBorder()
Gets default cell border;
public final void setDefaultCellBorder(BorderInfo value)
Gets default cell border;
value - BorderInfo objectpublic final String getDefaultColumnWidth()
Gets default cell border;
public final void setDefaultColumnWidth(String value)
Gets default cell border;
value - String objectpublic final Rows getRows()
Gets the rows of the table.
public final BorderInfo getBorder()
Gets the border.
public final void setBorder(BorderInfo value)
Sets the border.
value - BorderInfo objectpublic final MarginInfo getDefaultCellPadding()
Gets the default cell padding.
public final void setDefaultCellPadding(MarginInfo value)
Sets the default cell padding.
value - MarginInfo objectpublic final TextState getDefaultCellTextState()
Gets the default cell text state.
public final void setDefaultCellTextState(TextState value)
Sets the default cell text state.
value - TextState valuepublic final HorizontalAlignment getAlignment()
Gets the table alignment.
HorizontalAlignmentpublic final void setAlignment(HorizontalAlignment value)
Sets the table alignment.
value - HorizontalAlignment valueHorizontalAlignmentpublic final float getLeft()
Gets the table left coordinate.
public final void setLeft(float value)
Sets the table left coordinate.
value - float valuepublic final float getTop()
Gets the table top coordinate.
public final void setTop(float value)
Sets the table top coordinate.
value - float valuepublic final boolean isBroken()
Gets the table is broken - will be truncated for next page.
public final void setBroken(boolean value)
Sets the table is broken - will be truncated for next page.
value - boolean valuepublic final boolean isBordersIncluded()
Gets border included in column widths.
public final void setBordersIncluded(boolean value)
Sets border included in column widths.
value - boolean valuepublic final ColumnAdjustment getColumnAdjustment()
Gets the table column adjustment.
ColumnAdjustmentpublic final void setColumnAdjustment(ColumnAdjustment value)
Sets the table column adjustment.
value - ColumnAdjustment valueColumnAdjustmentpublic static void drawRoundedRectangle(GraphInfo info, Point topLeft, Point rightBottom, List<Operator> operators, double radius)
Add operators for rectangle.
For internal usage only.info - The border style.topLeft - The left top point.rightBottom - The right bottom point.operators - The operators list to be added into the page's content.radius - The border radius.public static double getColumnWidth(String stringColumnWidth)
Get column width
stringColumnWidth - The string representation.public double getWidth()
Get width.
public double getHeight()
Get height.
public double getHeight(Page parentPage)
Get height.
parentPage - The table's parent pagepublic void setColumnTextState(int colNumber,
TextState textState)
Set height.
colNumber - The column number.textState - The text state for column.public Object deepClone()
Clone the table.
deepClone in interface com.aspose.ms.System.ICloneabledeepClone in class BaseParagraphCopyright © 2025 Aspose. All Rights Reserved.