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

SignatureDescription
SetColumnWidths(widths: []float64) → *TableSetColumnWidths sets the column widths in points.
ColumnWidths() → []float64ColumnWidths returns a copy of the column widths.
SetBorder(b: BorderInfo) → *TableSets the border value.
Border() → BorderInfoReturns the border.
SetDefaultCellBorder(b: BorderInfo) → *TableSets the default cell border value.
DefaultCellBorder() → BorderInfoReturns the default cell border.
SetDefaultCellMargin(m: MarginInfo) → *TableSets the default cell margin value.
DefaultCellMargin() → MarginInfoReturns the default cell margin.
SetDefaultCellStyle(s: TextStyle) → *TableSets the default cell style value.
DefaultCellStyle() → TextStyleReturns the default cell style.
AddRow() → *RowAddRow appends an empty row and returns it for further configuration.
AddRows(rows: [][]string) → []*RowAddRows is a convenience that creates one Row per inner slice and one Cell per string in that slice.
Rows() → []*RowRows returns the rows in order.
RowCount() → intRowCount returns the number of rows.
SetRepeatingRowsCount(n: int) → *TableSetRepeatingRowsCount marks the first n rows as headers that repeat at the top of every continuation page.
RepeatingRowsCount() → intRepeatingRowsCount returns the number of header rows that repeat on each continuation page (default 0).
SetOverflowMargins(top: float64) → *TableSetOverflowMargins 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).

See Also

 English