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

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).

Voir aussi

  • Aspose.PDF — Résultats de l’API d’entreprise
 Français