TXTextControl.SubTextPartCollection.Remove Method

Removes a subtextpart from the collection including all its nested subtextparts.


public bool Remove(SubTextPart subTextPart, bool keepText, bool keepNested);
[Visual Basic]
Public Function Remove(ByVal subTextPart As SubTextPart, ByVal keepText As Boolean, ByVal keepNested As Boolean) As Boolean
Parameter Description

Specifies the subtextpart to remove.


If this parameter is set to true, the subtextpart is removed without deleting its visible text. Otherwise, the visible text is also removed.


If this parameter is set to true, nested subtextparts are preserved. When the keepText parameter is set to false, this parameter is ignored.

Return Value

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

See Also