ColumnWidths Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property ColumnWidths As Integer()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);
}Dim sectionFormat As SectionFormat = textControl.Sections(1).Format
For Each int32 As Integer In sectionFormat.ColumnWidths
Console.WriteLine(int32)
NextLimitations
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.