Inserts a new object of the type ApplicationField at the current input position.

Add(ApplicationField)

public bool Add(ApplicationField applicationField);
Public Function Add(ByVal applicationField As ApplicationField) As Boolean

Parameters

Parameter Description
applicationField Specifies the field to add.

Return Value

The return value is true, if the field could be added. Otherwise it is false.

Examples

This method inserts a new object of the type ApplicationField at the current input position.

TXTextControl.ApplicationField myAppField = new TXTextControl.ApplicationField(
TXTextControl.ApplicationFieldFormat.MSWord,
"MERGEFIELD",
"New ApplicationField",
new string[] { "FieldName" });

// using the 'Add' method
textControl1.ApplicationFields.Add(myAppField);
Dim myAppField As TXTextControl.ApplicationField =
    New TXTextControl.ApplicationField( _
    TXTextControl.ApplicationFieldFormat.MSWord, _
    "MERGEFIELD", _
    "New ApplicationField", _
    New String() {"FieldName"})

' using the 'Add' method
TextControl1.ApplicationFields.Add(myAppField)