TX Text Control .NET for WPF

Cells Property

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

Description

Gets a collection of all table cells the table consists of. The property's value is an object of the type TableCellCollection.

Syntax

public TableCellCollection Cells { get; }

Examples

The following example fills every cell with a label derived from its row and column numbers.

textControl.Tables.Add(2, 2, 10);
Table table = textControl.Tables.GetItem(10);

foreach (TableCell cell in table.Cells)
{
    cell.Text = $"Row {cell.Row}, column {cell.Column}";
}

Limitations

Read only.