Width

TextColumnCollection.Width property

When columns are evenly spaced, gets the width of the columns.

public double Width { get; }

Remarks

Has effect only when EvenlySpaced is set to true.

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