TX Text Control .NET Server

ColumnWidths 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 the widths, in twips, of the columns on a page. This property is read only, to set new widths one of the SectionFormat constructors must be used.

Syntax

public int[] ColumnWidths { get; }

Examples

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

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

foreach (int int32 in sectionFormat.ColumnWidths)
{
    Console.WriteLine(int32);
}

Limitations

Read only.

Remarks

The size of the array is the number of columns.

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