TX Text Control .NET for WPF

TableBaseCollection Class

Class|Introduced in 11.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Derived
TableCollection
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, IEnumerable

Examples

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.");

Members

Properties

PropertyDescription
CountGets the number of tables contained in the collection.
IsSynchronizedReturns true if the collection is designed to be thread safe, otherwise, it returns false.
ItemNot described in the reference. public Table this[int number] { get; }
SyncRootGets an object that can be used to synchronize access to the collection.

Methods

MethodDescription
ClearRemoves all tables contained in the collection from a Text Control document.
CopyToCopies the elements of the collection to an array, starting at a particular index.
GetEnumeratorReturns an enumerator that can be used to iterate through the collection.
GetItemGets a particular table from the collection.
RemoveRemoves a particular table from the collection.