TXTextControl.SubTextPartCollection.Add Method

Adds a new subtextpart to the document. Its position is defined through the SubTextPart.Start and SubTextPart.Length properties. If the subtextpart's length is zero, the current text selection is used to define the position.

Syntax

[C#]
public SubTextPartCollection.AddResult Add(SubTextPart subTextPart);
[Visual Basic]
Public Function Add(ByVal subTextPart As SubTextPart) As SubTextPartCollection.AddResult
Parameter Description
subTextPart

Specifies the subtextpart to add.

Return Value

The return value specifies whether the new textpart has successfully been inserted. It can be one of the SubTextPartCollection.AddResult values.

See Also