Tables Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property Tables As TableCollectionExamples
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";Dim headers As HeaderFooterCollection = textControl.Sections(1).HeadersAndFooters
headers.Add(HeaderFooterType.Header)
Dim headerFooter As HeaderFooter = headers.GetItem(HeaderFooterType.Header)
headerFooter.Tables.Add(1, 2, 10)
Dim metadata As Table = headerFooter.Tables.GetItem(10)
metadata.Cells(1, 1).Text = "Department"
metadata.Cells(1, 2).Text = "Finance"Limitations
Read only.