TXTextControl.ApplicationFieldCollection.Remove Method

Removes a field of the type ApplicationField from a TX Text Control document.

Remove(ApplicationField)

Removes a field of the type ApplicationField including its visible text from a TX Text Control document.

[C#]
public bool Remove(ApplicationField applicationField);
[Visual Basic]
Public Function Remove(ByVal applicationField As ApplicationField) As Boolean
Parameter Description
applicationField

Specifies the field to remove.

Remove(ApplicationField, Boolean)

Removes a field of the type ApplicationField from a TX Text Control document. The visible text is deleted depending on the keepText parameter.

[C#]
public bool Remove(ApplicationField applicationField, bool keepText);
[Visual Basic]
Public Function Remove(ByVal applicationField As ApplicationField, ByVal keepText As Boolean) As Boolean
Parameter Description
applicationField

Specifies the field to remove.

keepText

If this parameter is set to true, the field is removed without deleting its visible text. Otherwise, the field's text is also deleted.

Return Value

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

See Also