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.

Add(SubTextPart)

public SubTextPartCollection.AddResult Add(SubTextPart subTextPart);
Public Function Add(ByVal subTextPart As SubTextPart) As SubTextPartCollection.AddResult

Parameters

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.