TX Text Control .NET for Windows Forms

Item Method

Method|Introduced in 24.0
Namespace
TXTextControl.DocumentServer.DataSources
Package
TXTextControl.TextControl.WinForms.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a DataTableInfo instance from the collection. In C# this property is the indexer for the DataTableInfoCollection class.

Syntax

this[string]

public DataTableInfo this[string name] { get; }

this[int]

public DataTableInfo this[int index] { get; }

Parameters

ParameterDescription
index

The 0-based index.

name

The table name.

Return Value

The DataTableInfo object at the given index / with the given name in the collection.

Examples

The following example includes the item value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Item: {dataTableInfoCollection["CustomerName"]}");
Console.WriteLine("Data Table Info Collection is ready for use.");

Limitations

Read only.