TopTextDistance 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 distance between the table cell's top border and its text.
Syntax
public int TopTextDistance { get; set; }Public Property TopTextDistance As IntegerExamples
The following example creates a small report table and works with its structure by using TableCellFormat.TopTextDistance.
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCellFormat tableCellFormat = table.Cells[1, 1].CellFormat;
tableCellFormat.TopTextDistance = 720;
Console.WriteLine($"Top Text Distance used by Table Cell Format: {tableCellFormat.TopTextDistance}");textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableCellFormat As TableCellFormat = table.Cells(1, 1).CellFormat
tableCellFormat.TopTextDistance = 720
Console.WriteLine($"Top Text Distance used by Table Cell Format: {tableCellFormat.TopTextDistance}")