Item Method
- Namespace
TXTextControl.DocumentServer. DataSources
- Package
TXTextControl.asTextControl. Core. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
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; }Default Public ReadOnly Property Item(name As String) As DataTableInfothis[int]
public DataTableInfo this[int index] { get; }Default Public ReadOnly Property Item(index As Integer) As DataTableInfoParameters
| Parameter | Description |
|---|---|
| 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.");Console.WriteLine($"Item: {dataTableInfoCollection.Item("CustomerName")}")
Console.WriteLine("Data Table Info Collection is ready for use.")Limitations
Read only.