TextColumns

PageSetup.TextColumns property

Returns a collection that represents the set of text columns.

public TextColumnCollection TextColumns { get; }

Examples

Shows how to create multiple evenly spaced columns in a section.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

TextColumnCollection columns = builder.PageSetup.TextColumns;
columns.Spacing = 100;
columns.SetCount(2);

builder.Writeln("Column 1.");
builder.InsertBreak(BreakType.ColumnBreak);
builder.Writeln("Column 2.");

doc.Save(ArtifactsDir + "PageSetup.ColumnsSameWidth.docx");

See Also