Table
Overview
Table is a type in Aspose.PDF FOSS for Go.
Table is a transient builder for a tabular layout drawn onto a Page.
This type provides 18 methods for working with Table objects in Go programs.
Available methods include: AddRow, AddRows, Border, ColumnWidths, DefaultCellBorder, DefaultCellMargin, DefaultCellStyle, OverflowMargins, RepeatingRowsCount, RowCount, Rows, SetBorder, and 6 additional methods.
All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.
Methods
| Signature | Description |
|---|---|
SetColumnWidths(widths: []float64) → *Table | SetColumnWidths sets the column widths in points. |
ColumnWidths() → []float64 | ColumnWidths returns a copy of the column widths. |
SetBorder(b: BorderInfo) → *Table | Sets the border value. |
Border() → BorderInfo | Returns the border. |
SetDefaultCellBorder(b: BorderInfo) → *Table | Sets the default cell border value. |
DefaultCellBorder() → BorderInfo | Returns the default cell border. |
SetDefaultCellMargin(m: MarginInfo) → *Table | Sets the default cell margin value. |
DefaultCellMargin() → MarginInfo | Returns the default cell margin. |
SetDefaultCellStyle(s: TextStyle) → *Table | Sets the default cell style value. |
DefaultCellStyle() → TextStyle | Returns the default cell style. |
AddRow() → *Row | AddRow appends an empty row and returns it for further configuration. |
AddRows(rows: [][]string) → []*Row | AddRows is a convenience that creates one Row per inner slice and one Cell per string in that slice. |
Rows() → []*Row | Rows returns the rows in order. |
RowCount() → int | RowCount returns the number of rows. |
SetRepeatingRowsCount(n: int) → *Table | SetRepeatingRowsCount marks the first n rows as headers that repeat at the top of every continuation page. |
RepeatingRowsCount() → int | RepeatingRowsCount returns the number of header rows that repeat on each continuation page (default 0). |
SetOverflowMargins(top: float64) → *Table | SetOverflowMargins sets the top/bottom margins (in points) used to compute the continuation-page bounding rectangle when the table overflows the original rect. |
OverflowMargins() → (top, bottom float64) | OverflowMargins returns the configured overflow margins (defaults 50/50 if SetOverflowMargins has not been called). |