TX Text Control .NET for Windows Forms

Tables Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a collection of all tables contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type TableCollection.

Syntax

public TableCollection Tables { get; }

Examples

The following example creates a table and fills each cell with its row and column coordinates.

textControl.Tables.Add(2, 3, 10);

foreach (TableCell cell in textControl.Tables[1].Cells)
{
    cell.Text = $"Row {cell.Row}, column {cell.Column}";
}

Limitations

Runtime only.

Read only.