bottomPadding property

Table.bottomPadding property

Gets or sets the amount of space (in points) to add below the contents of cells.

get bottomPadding(): number

Examples

Shows how to configure content padding in a table.

let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);

let table = builder.startTable();
builder.insertCell();
builder.write("Row 1, cell 1.");
builder.insertCell();
builder.write("Row 1, cell 2.");
builder.endTable();

// For every cell in the table, set the distance between its contents and each of its borders. 
// This table will maintain the minimum padding distance by wrapping text.
table.leftPadding = 30;
table.rightPadding = 60;
table.topPadding = 10;
table.bottomPadding = 90;
table.preferredWidth = aw.Tables.PreferredWidth.fromPoints(250);

doc.save(base.artifactsDir + "DocumentBuilder.SetRowFormatting.docx");

See Also