クラス テーブルジェネレーター
情報
Documentize.TableGenerator プラグインを表します。PDF ドキュメントにテーブルを追加するために使用されます。
public sealed class TableGenerator
継承
継承メンバー
- object.GetType(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
例
この例は、PDF ファイルにテーブルを追加する方法を示しています。
// テーブルジェネレーターを作成
var plugin = new TableGenerator();
// 指示を設定するために TableOptions オブジェクトを作成
TableOptions opt = new TableOptions().InsertPageBefore(1)
.AddTable()
.AddRow()
.AddCell().AddParagraph("名前")
.AddCell().AddParagraph("年齢")
.AddRow()
.AddCell().AddParagraph("ボブ")
.AddCell().AddParagraph("12")
.AddRow()
.AddCell().AddParagraph("サム")
.AddCell().AddParagraph("20")
.AddRow()
.AddCell().AddParagraph("サンディ")
.AddCell().AddParagraph("26")
.AddRow()
.AddCell().AddParagraph("トム")
.AddCell().AddParagraph("12")
.AddRow()
.AddCell().AddParagraph("ジム")
.AddCell().AddParagraph("27");
// 入力ファイルパスを追加
opt.AddInput(new FileDataSource(inputPath1));
// 出力ファイルパスを設定
opt.AddOutput(new FileDataSource(outputPath));
// 処理を実行
plugin.Process(opt);
コンストラクタ
TableGenerator()
public TableGenerator()
メソッド
Process(TableOptions)
指定されたパラメータで Documentize.TableGenerator 処理を開始します。
public ResultContainer Process(TableOptions options)
パラメータ
options
TableOptions: Documentize.TableGenerator に対する指示を含むオプションオブジェクト。
戻り値
ResultContainer : 操作の結果を含む ResultContainer オブジェクト。
名前空間: Documentize
アセンブリ: Documentize.dll