TX Text Control .NET Server

Columns Property

Property|Introduced in 15.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets the number of columns on a page.

Syntax

public int Columns { get; set; }

Examples

The following example configures the layout of the first document section by using SectionFormat.Columns.

SectionFormat sectionFormat = textControl.Sections[1].Format;

sectionFormat.Columns = 1;
Console.WriteLine($"Columns used by Section Format: {sectionFormat.Columns}");

Remarks

The property's default value is 1.

The property returns 0 when the text selection contains multiple sections with mixed setting. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.