FieldAdapterCollection Class
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXDocumentServer.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXDocumentServer.from the setup.dll
- Implements
- ICollection, IEnumerable
Description
An instance of the FieldAdapterCollection class contains adapters for all application fields of the page it belongs to. An instance of this class can be obtained via the DocumentController.Page.FieldAdapters property. The FieldAdapterCollection that can be accessed via the DocumentController.FieldAdapters property contains adapters for all the application fields in the currently loaded document, of course. The FieldAdapterCollection class implements the IEnumerable and the ICollection interfaces and is part of the TXTextControl.DocumentServer.DocumentController namespace.
Syntax
public sealed class DocumentController.FieldAdapterCollection : ICollection, IEnumerablePublic NotInheritable Class DocumentController.FieldAdapterCollection
Implements ICollection, IEnumerableExamples
The following example creates a Field Adapter Collection instance for a document-processing operation. The created object is then available to the surrounding document workflow.
TXTextControl.DocumentServer.DocumentController.FieldAdapterCollection fieldAdapterCollection = new(new UserDefinedPropertyDictionary(), new ServerTextControl());
Console.WriteLine("Field Adapter Collection is ready for use.");Dim fieldAdapterCollection As New TXTextControl.DocumentServer.DocumentController.FieldAdapterCollection(New UserDefinedPropertyDictionary(), New ServerTextControl())
Console.WriteLine("Field Adapter Collection is ready for use.")Members
Constructors
| Constructor | Description |
|---|---|
| FieldAdapterCollection | Not described in the reference. public FieldAdapterCollection(ICollection appFields, ServerTextControl txServer); |
Properties
| Property | Description |
|---|---|
| Count | Gets the number of elements contained in the collection. |
| IsSynchronized | Not described in the reference. public bool IsSynchronized { get; } |
| Item | Gets the DocumentServer.Fields.FieldAdapter instance at the specified index from the collection. In C# this property is the indexer for the FieldAdapterCollection class. |
| SyncRoot | Not described in the reference. public object SyncRoot { get; } |
Methods
| Method | Description |
|---|---|
| CopyTo | Copies the elements of the collection to an array, starting at the specified index. |
| GetEnumerator | Returns an enumerator that can be used to iterate over the collection's items. |
| IndexOf | Gets the index of the specified field adapter in the collection. |