IndexOf Method
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the index of the specified field adapter in the collection.
Syntax
public int IndexOf(FieldAdapter fieldAdapter);Public Function IndexOf(fieldAdapter As FieldAdapter) As IntegerParameters
| Parameter | Description |
|---|---|
| fieldAdapter | Specifies the field adapter whose index should be looked up. |
Return Value
The integer returned by the function represents the field adapter's position in the collection. If the specified field adapter is not in the collection, a negative value is returned.
Examples
The following example uses Index Of in a focused Field Adapter Collection workflow.
var result = fieldAdapterCollection.IndexOf(new TXTextControl.DocumentServer.Fields.CheckBoxContentControl());
Console.WriteLine($"Index Of result: {result}");Dim result = fieldAdapterCollection.IndexOf(New TXTextControl.DocumentServer.Fields.CheckBoxContentControl())
Console.WriteLine($"Index Of result: {result}")