TX Text Control .NET Server

Item Property

Property|Introduced in 15.0
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets the DocumentServer.Fields.FieldAdapter instance at the specified index from the collection. In C# this property is the indexer for the FieldAdapterCollection class.

Syntax

public FieldAdapter this[int index] { get; }

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: {fieldAdapterCollection[1]}");
Console.WriteLine("Field Adapter Collection is ready for use.");

Limitations

Read only.

Remarks

If there is no adapter for the type of field at the given index, the property returns null. Otherwise, it is an object of type DocumentServer.Fields.FieldAdapter