TX Text Control .NET for Windows Forms Documentation

SectionFormat Constructor

Initializes a new instance of the SectionFormat class. The first constructor creates an empty SectionFormat object. Further properties must be set. The second constructor creates a SectionFormat object for a section with equal column widths. The SectionFormat.EqualColumnWidth property is automatically set to true. The third constructor creates a SectionFormat object for a section with individual column widths and distances. The SectionFormat.EqualColumnWidth property is automatically set to false.

Syntax

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

Specifies the number of columns for the section.

columnDistance

Specifies the distance between equal columns.

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

 
 
 

Products

Support

Downloads

Corporate

Buy Now