TX Text Control .NET for WPF

ColumnDistances Property

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

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; }

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);
}

Limitations

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.