TX Text Control .NET for Windows Forms

Columns Property

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

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.