TextFieldCollectionBase Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.dll
- Derived
- Application
Field , DocumentCollection Link , FormCollection Field , HypertextCollection Link , PageCollection Number , TextField Collection Field Collection
- Implements
- ICollection, IEnumerable
Description
The TextFieldCollectionBase class is the base class of the TextFieldCollection, HypertextLinkCollection, DocumentLinkCollection, PageNumberFieldCollection, ApplicationFieldCollection and FormFieldCollection classes. It implements their base functionality. The TextFieldCollectionBase class implements the IEnumerable and the ICollection interface.
Syntax
public abstract class TextFieldCollectionBase : ICollection, IEnumerablePublic MustInherit Class TextFieldCollectionBase
Implements ICollection, IEnumerableExamples
The following example includes the can add value from a Text Field Collection Base object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Can Add: {textFieldCollectionBase.CanAdd}");
Console.WriteLine("Text Field Collection Base is ready for use.");Console.WriteLine($"Can Add: {textFieldCollectionBase.CanAdd}")
Console.WriteLine("Text Field Collection Base is ready for use.")Members
Properties
| Property | Description |
|---|---|
| CanAdd | Gets a value indicating whether a new text field can be inserted at the current input position. It is true if a text field can be inserted, otherwise it is false. Text Control cannot insert a text field inside of another text field. |
| Count | Gets the number of elements contained in the collection. |
| IsSynchronized | Returns true if the collection is designed to be thread safe, otherwise, it returns false. |
| SyncRoot | Gets an object that can be used to synchronize access to the collection. |
Methods
| Method | Description |
|---|---|
| CopyTo | Not described in the reference. public abstract void CopyTo(Array array, int index); |
| GetEnumerator | Returns an enumerator that can be used to iterate through the collection. |