Tableau
Vue de l’ensemble
‘Table’ est un type dans Aspose.PDF FOSS pour Go.
Table est un constructeur transitoire pour une disposition tabulaire tirée sur une page.
Ce type fournit 18 méthodes pour travailler avec des objets de table dans les programmes Go. Les méthodologies disponibles comprennent: ‘AddRow’, ‘AdDraw’, Border', ‘ColumnWidths’, 'DefaultCellBord', ’Defult CellMargin', ‚DefeultStyle, ‘OverflowMargins’, ‘‘RepeatingRowsCount’, ‘’ROWCoUNT’, Roves et 6 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Go après l’installation du package Aspose.PDF FOSS for Go .
méthodes
| 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). |
Voir aussi
- Aspose.PDF — Résultats de l’API d’entreprise