Removes a subtextpart from the collection including all its nested subtextparts.
<void> SubTextPartCollection.remove(<SubTextPart> subTextPart, <Boolean> keepText, <Boolean> keepNested, [<RequestBooleanCallback> callback], [<ErrorCallback> errorCallback])
Parameter | Description |
---|---|
sub |
Specifies the subtextpart to remove. |
keep |
If this parameter is set to true, the subtextpart is removed without deleting its visible text. Otherwise, the visible text is also removed. |
keep |
If this parameter is set to true, nested subtextparts are preserved. When the keep |
callback | Optional. Receives a value which indicates whether the remove was succesful. |
error |
Optional. Is called when the operation failed with an error. |