TXTextControl.TextFieldCollection.Remove Method

Removes a text field from a Text Control document.

Remove(TextField)

Removes the specified text field from the Text Control document.

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

Specifies the text field to remove.

Remove(TextField, Boolean)

Removes the specified text field from the Text Control document. The field's visible text remains in the document, when the keepText parameter is set to true.

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

Specifies the text field to remove.

keepText

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

Return Value

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

See Also