Cells 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 table cells the table consists of. The property's value is an object of the type TableCellCollection.
Syntax
public TableCellCollection Cells { get; }Public ReadOnly Property Cells As TableCellCollectionExamples
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}";
}textControl.Tables.Add(2, 2, 10)
Dim table As Table = textControl.Tables.GetItem(10)
For Each cell As TableCell In table.Cells
cell.Text = $"Row {cell.Row}, column {cell.Column}"
NextLimitations
Read only.