TX Text Control .NET for WPF

TextFieldCollectionBase Class

Class
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Derived
ApplicationFieldCollection, DocumentLinkCollection, FormFieldCollection, HypertextLinkCollection, PageNumberFieldCollection, TextFieldCollection
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, IEnumerable

Examples

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.");

Members

Properties

PropertyDescription
CanAddGets 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.
CountGets the number of elements contained in the collection.
IsSynchronizedReturns true if the collection is designed to be thread safe, otherwise, it returns false.
SyncRootGets an object that can be used to synchronize access to the collection.

Methods

MethodDescription
CopyToNot described in the reference. public abstract void CopyTo(Array array, int index);
GetEnumeratorReturns an enumerator that can be used to iterate through the collection.