TX Text Control .NET for Windows Forms

EqualColumnWidth Property

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

Description

Gets or sets a value indicating whether the columns on a page have all the same width and the same distance between them. If this property is set to true, the width of the columns are automatically calculated from the page size. The common distance can be specified with the SectionFormat.ColumnDistances property.

Syntax

public bool EqualColumnWidth { get; set; }

Examples

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

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

sectionFormat.EqualColumnWidth = true;
if (sectionFormat.EqualColumnWidth)
{
    Console.WriteLine("Section Format: Equal Column Width is enabled.");
}

Remarks

The property's default value is true.

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