Columns Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the number of columns on a page.
Syntax
public int Columns { get; set; }Public Property Columns As IntegerExamples
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}");Dim sectionFormat As 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.