Row
概要
Row は Aspose.PDF の Go 用 FOSS における型です。
Row は Table の中の単一の行です。
この型は Go プログラムで Row オブジェクトを操作するための 15 のメソッドを提供します。利用可能なメソッドは AddCell、AddCells、Background、Border、CellCount、Cells、Height、Margin、SetBackground、SetBorder、SetHeight、SetMargin、およびさらに 3 つのメソッドです。Aspose.PDF の Go 用 FOSS パッケージをインストールすれば、すべての公開メンバーは任意の Go アプリケーションから利用可能です。
メソッド
| シグネチャ | 説明 |
|---|---|
Table() → *Table | Table は所有しているテーブルを返します。 |
AddCell(text: string) → *Cell | AddCell は指定されたテキストでセルを追加します。 |
AddCells(texts: ...string) → []*Cell | AddCells は、各テキストを順に AddCell に渡す便利な関数です。 |
Cells() → []*Cell | Cells は行のセルを返します。 |
CellCount() → int | CellCount はこの行のセル数を返します。 |
SetHeight(h: float64) → *Row | SetHeight は行の描画高さをポイント単位で設定します。 |
Height() → float64 | Height は設定された行の高さを返します。 |
SetBackground(col: *Color) → *Row | SetBackground は行レベルの背景色を設定します。 |
Background() → *Color | Background は行レベルの背景色を返します。設定されていない場合は nil を返します。 |
SetTextStyle(s: TextStyle) → *Row | SetTextStyle は行レベルのデフォルトテキストスタイルを設定します。 |
TextStyle() → *TextStyle | TextStyle は行レベルのテキストスタイルのオーバーライドを返します。設定されていない場合は nil を返します。 |
SetBorder(b: BorderInfo) → *Row | SetBorder は行レベルのデフォルトボーダーを設定します。 |
Border() → *BorderInfo | Border は行レベルのボーダーオーバーライドを返します。設定されていない場合は nil を返します。 |
SetMargin(m: MarginInfo) → *Row | SetMargin は行レベルのデフォルトセルパディングを設定します。 |
Margin() → *MarginInfo | Margin は行レベルのマージンオーバーライドを返します。設定されていない場合は nil を返します。 |