VegaRise.NET
HomeAPI Reference
Back to DOM

PageColumnsClass

Definition

Namespace
DOM.Elements
Assembly
DOM.dll

Represents the column configuration for a page or section.

Remarks

describes how a page is divided into multiple columns: the number of columns, the spacing between them and whether a separator line should be drawn. Layout and rendering components should consult these values when flowing content into columns. PageColumns The class derives from and implements . BaseElement IPageColumns

Examples

csharp
1// 1. Two-column layout without separator
2var cols = new PageColumns { ColumnCount = 2 };
3doc.PageColumns = cols;
4
csharp
1// 2. Three columns with a separator line
2var cols = new PageColumns
3{
4 ColumnCount = 3,
5 DrawSeperatorLine = true,
6 Space = new DocumentUnit(0.25, Units.inch)
7};
8
csharp
1// 3. Column configuration per section
2var section = doc.AddSection();
3section.PageColumns = new PageColumns
4{
5 ColumnCount = 2,
6 Space = new DocumentUnit(0.3, Units.inch),
7 DrawSeperatorLine = true
8};
9
csharp
1// 4. Single-column explicit setting
2doc.PageColumns = new PageColumns { ColumnCount = 1 };
3

Properties

ColumnCount

Gets or sets the number of columns for the page.

DrawSeperatorLine

Gets or sets a value indicating whether a visual separator line should be drawn between columns.

Gets or sets the spacing between adjacent columns.