Класс TableGenerator

Информация

Представляет плагин Documentize.TableGenerator. Используется для добавления таблицы в PDF-документ.

public sealed class TableGenerator  

Наследование

object
TableGenerator

Унаследованные члены

Примеры

Пример демонстрирует, как добавить таблицу в PDF файл.

// create TableGenerator  
var plugin = new TableGenerator();  
// create TableOptions object to set instructions  
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");  
// add input file path  
opt.AddInput(new FileDataSource(inputPath1));  
// set output file path  
opt.AddOutput(new FileDataSource(outputPath));  
// perform the process  
plugin.Process(opt);  

Конструкторы

TableGenerator()

public TableGenerator()  

Методы

Process(TableOptions)

Начинает обработку Documentize.TableGenerator с указанными параметрами.

public ResultContainer Process(TableOptions options)  

Параметры

  • options TableOptions: Объект параметров, содержащий инструкции для Documentize.TableGenerator.

Возвращает

ResultContainer : Объект ResultContainer, содержащий результат операции.

Namespace: Documentize
Assembly: Documentize.dll

 Русский