TableBaseCollection Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.dll
- Derived
- Table
Collection
- Implements
- ICollection, IEnumerable
Description
The TableBaseCollection class is the base class for the table collection classes. It contains the generic enumeration features for all tables of a document or for the nested tables embedded in a single table. It implements the IEnumerable and the ICollection interfaces.
Syntax
public class TableBaseCollection : ICollection, IEnumerablePublic Class TableBaseCollection
Implements ICollection, IEnumerableExamples
The following example includes the count value from a Table Base Collection object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Count: {tableBaseCollection.Count}");
Console.WriteLine("Table Base Collection is ready for use.");Console.WriteLine($"Count: {tableBaseCollection.Count}")
Console.WriteLine("Table Base Collection is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Count | Gets the number of tables contained in the collection. |
| IsSynchronized | Returns true if the collection is designed to be thread safe, otherwise, it returns false. |
| Item | Not described in the reference. public Table this[int number] { get; } |
| SyncRoot | Gets an object that can be used to synchronize access to the collection. |
Methods
| Method | Description |
|---|---|
| Clear | Removes all tables contained in the collection from a Text Control document. |
| CopyTo | Copies the elements of the collection to an array, starting at a particular index. |
| GetEnumerator | Returns an enumerator that can be used to iterate through the collection. |
| GetItem | Gets a particular table from the collection. |
| Remove | Removes a particular table from the collection. |