TX Text Control .NET Server

Tables Property

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

Description

Gets a collection of all tables in the header or footer. The property's value is an object of the type TableCollection.

Syntax

public TableCollection Tables { get; }

Examples

The following example adds a compact two-column metadata table to a header.

HeaderFooterCollection headers = textControl.Sections[1].HeadersAndFooters;
headers.Add(HeaderFooterType.Header);
HeaderFooter headerFooter = headers.GetItem(HeaderFooterType.Header);
headerFooter.Tables.Add(1, 2, 10);
Table metadata = headerFooter.Tables.GetItem(10);
metadata.Cells[1, 1].Text = "Department";
metadata.Cells[1, 2].Text = "Finance";

Limitations

Read only.