Width Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets, in twips, the width of the column. If the cells of the column have different widths, the property returns 0.
Syntax
public int Width { get; set; }Public Property Width As IntegerExamples
The following example creates a small report table and works with its structure by using TableColumn.Width.
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableColumn tableColumn = table.Columns[2];
tableColumn.Width = 100;
tableColumn.Select();textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableColumn As TableColumn = table.Columns(2)
tableColumn.Width = 100
tableColumn.Select()