An instance of the Table
public sealed class TableCellCollection: TablePartCollection
Public NotInheritable Class TableCellCollection
Inherits TablePartCollection
The following example shows how to iterate over the table cell collection.
foreach (TXTextControl.TableCell myCell in myTable.Cells)
{
string myRow = myCell.Row.ToString();
string myCol = myCell.Column.ToString();
string myText = myCell.Text;
Console.WriteLine("({0},{1}): {2}", myRow, myCol, myText);
}
For Each MyCell As TXTextControl.TableCell In MyTable.Cells
Dim MyRow As String = MyCell.Row.ToString()
Dim MyCol As String = MyCell.Column.ToString()
Dim MyText As String = MyCell.Text
Console.WriteLine("({0},{1}): {2}", MyRow, MyCol, MyText)
Next
Method | Description |
---|---|
Copy |
Copies the elements of the collection to an array, starting at a particular index. |
Get |
Returns an enumerator that can be used to iterate through the collection.
(Inherited from Table |
Get |
Gets a particular table cell from the collection. |
Remove | Removes the table cell at the current text input position or all selected table cells when a text selection exists. |
Property | Description |
---|---|
Can |
Gets a value indicating whether table cells can be removed. |
Count | Gets the number of elements contained in the collection.
(Inherited from Table |
Is |
Returns true if the collection is designed to be thread safe, otherwise, it returns false.
(Inherited from Table |
Sync |
Gets an object that can be used to synchronize access to the collection.
(Inherited from Table |