An instance of the Application
public sealed class ApplicationFieldCollection: TextFieldCollectionBase
Public NotInheritable Class ApplicationFieldCollection
Inherits TextFieldCollectionBase
Introduced: 14.0.
The following example iterates through all fields and sets the visible text of the address field:
foreach (TXTextControl.ApplicationField myApplicationField in textControl1.ApplicationFields)
{
if (myApplicationField.TypeName == "MERGEFIELD" &&
myApplicationField.Parameters[0] == "Address")
{
myApplicationField.Text = "Bakerstreet, London";
}
}
For Each myApplicationField As TXTextControl.ApplicationField In TextControl1.ApplicationFields
If myApplicationField.TypeName = "MERGEFIELD" AndAlso myApplicationField.Parameters(0) = "Address" Then
myApplicationField.Text = "Bakerstreet, London"
End If
Next
Method | Description |
---|---|
Add | Inserts a new object of the type Application |
Clear | Removes all fields of the type Application |
Copy |
Copies the elements of the collection to an array, starting at a particular index. |
Get |
Returns an enumerator that can be used to iterate through the collection.
(Inherited from Text |
Get |
Gets a particular field of the type Application |
Remove | Removes a field of the type Application |
Property | Description |
---|---|
Can |
Gets a value indicating whether a new text field can be inserted at the current input position.
(Inherited from Text |
Count | Gets the number of elements contained in the collection.
(Inherited from Text |
Is |
Returns true if the collection is designed to be thread safe, otherwise, it returns false.
(Inherited from Text |
Item | Gets the field with the specified number from the collection. |
Sync |
Gets an object that can be used to synchronize access to the collection.
(Inherited from Text |