PageSetupTextColumns Property

Returns a collection that represents the set of text columns.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.10.0

ExpandedSyntax

public TextColumnCollection TextColumns { get; }

Property Value

Type: TextColumnCollection

ExpandedExamples

Shows how to create multiple evenly spaced columns in a section using DocumentBuilder.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

TextColumnCollection columns = builder.PageSetup.TextColumns;
// Make spacing between columns wider
columns.Spacing = 100;
// This creates two columns of equal width
columns.SetCount(2);

builder.Writeln("Text in column 1.");
builder.InsertBreak(BreakType.ColumnBreak);
builder.Writeln("Text in column 2.");

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

ExpandedSee Also