VegaRise.NET
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.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.