TXTextControl.SectionFormat Constructor

Creates a new instance of the SectionFormat class.

SectionFormat()

Creates an empty SectionFormat object. Further properties must be set.

[C#]
public SectionFormat();
[Visual Basic]
Public Sub New()

SectionFormat(Int32, Int32)

Creates a SectionFormat object for a section with equal column widths. The SectionFormat.EqualColumnWidth property is automatically set to true.

[C#]
public SectionFormat(int columns, int columnDistance);
[Visual Basic]
Public Sub New(ByVal columns As Integer, ByVal columnDistance As Integer)
Parameter Description
columns

Specifies the number of columns for the section.

columnDistance

Specifies the distance between equal columns.

SectionFormat(Int32, Int32[], Int32[])

Creates a SectionFormat object for a section with individual column widths and distances. The SectionFormat.EqualColumnWidth property is automatically set to false.

[C#]
public SectionFormat(int columns, int[] columnWidths, int[] columnDistances);
[Visual Basic]
Public Sub New(ByVal columns As Integer, columnWidths As Integer(), columnDistances As Integer())
Parameter Description
columns

Specifies the number of columns for the section.

columnWidths

Specifies the widths of the columns. The array must contain exactly an element for each column.

columnDistances

Specifies the distances between the columns. The array must contain exactly an element for each distance. The size of this array must be one less the size of the columnWidths array. The sum of all widths and distances must not exceed the width of the page's text area. Otherwise an exception occurs. The width of the text area is the page width less the left and the right page margin.

See Also