EqualColumnWidth Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property EqualColumnWidth As BooleanExamples
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.");
}Dim sectionFormat As SectionFormat = textControl.Sections(1).Format
sectionFormat.EqualColumnWidth = True
If sectionFormat.EqualColumnWidth Then
Console.WriteLine("Section Format: Equal Column Width is enabled.")
End IfRemarks
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.