TX Text Control .NET Server

Tables Property

Property|Introduced in 12.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Gets a collection of all tables contained in the document. 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.