public static void SetTableRowFormatting(string dataDir)
{
// ExStart:DocumentBuilderSetTableRowFormatting
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Table table = builder.StartTable();
builder.InsertCell();
// Set the row formatting
RowFormat rowFormat = builder.RowFormat;
rowFormat.Height = 100;
rowFormat.HeightRule = HeightRule.Exactly;
// These formatting properties are set on the table and are applied to all rows in the table.
table.LeftPadding = 30;
table.RightPadding = 30;
table.TopPadding = 30;
table.BottomPadding = 30;
builder.Writeln("I'm a wonderful formatted row.");
builder.EndRow();
builder.EndTable();
dataDir = dataDir + "DocumentBuilderSetTableRowFormatting_out.doc";
doc.Save(dataDir);
// ExEnd:DocumentBuilderSetTableRowFormatting
Console.WriteLine("\nTable row formatting using DocumentBuilder set successfully.\nFile saved at " + dataDir);
}
public static void SetMultilevelListFormatting(string dataDir)