---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/row
---

# Row

## Overview

`Row` is a type in Aspose.PDF FOSS for Go.

Row is a single row within a Table.

This type declares 15 methods for Row objects in Go programs.
Available methods include: `AddCell`, `AddCells`, `Background`, `Border`, `CellCount`, `Cells`, `Height`, `Margin`, `SetBackground`, `SetBorder`, `SetHeight`, `SetMargin`, and 3 additional methods.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

## Methods

| Signature | Description |
|-----------|-------------|
| `Table()` → `*Table` | Table returns the owning table. |
| `AddCell(text: string)` → `*Cell` | AddCell appends a cell with the given text. |
| `AddCells(texts: ...string)` → `[]*Cell` | AddCells is a convenience that calls AddCell for each text in order. |
| `Cells()` → `[]*Cell` | Cells returns the row's cells. |
| `CellCount()` → `int` | CellCount returns the number of cells in this row. |
| `SetHeight(h: float64)` → `*Row` | SetHeight sets the row's drawn height in points. |
| `Height()` → `float64` | Height returns the configured row height. |
| `SetBackground(col: *Color)` → `*Row` | SetBackground sets a row-level background color. |
| `Background()` → `*Color` | Background returns the row-level background color, or nil if unset. |
| `SetTextStyle(s: TextStyle)` → `*Row` | SetTextStyle sets a row-level default text style. |
| `TextStyle()` → `*TextStyle` | TextStyle returns the row-level text style override, or nil if unset. |
| `SetBorder(b: BorderInfo)` → `*Row` | SetBorder sets a row-level default border. |
| `Border()` → `*BorderInfo` | Border returns the row-level border override, or nil if unset. |
| `SetMargin(m: MarginInfo)` → `*Row` | SetMargin sets a row-level default cell padding. |
| `Margin()` → `*MarginInfo` | Margin returns the row-level margin override, or nil if unset. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)