ColumnDistances Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the distances, in twips, between the columns on a page. This property is read only, to set new distances one of the SectionFormat constructors must be used.
Syntax
public int[] ColumnDistances { get; }Public ReadOnly Property ColumnDistances As Integer()Examples
The following example configures the layout of the first document section by using SectionFormat.ColumnDistances.
SectionFormat sectionFormat = textControl.Sections[1].Format;
foreach (int int32 in sectionFormat.ColumnDistances)
{
Console.WriteLine(int32);
}Dim sectionFormat As SectionFormat = textControl.Sections(1).Format
For Each int32 As Integer In sectionFormat.ColumnDistances
Console.WriteLine(int32)
NextLimitations
Read only.
Remarks
The size of the array is: number of columns - 1
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.