Adds a new section at the specified text input position. The new section ends at the end position of the section containing the input position. If a new section is inserted in a paragraph or table, the paragraph or table is split into two paragraphs or tables.

<void> SectionCollection.addAtTextPosition(<SectionBreakKind> sectionBreakKind, <number> textPosition, [<RequestBooleanCallback> callback], [<ErrorCallback> errorCallback])


Parameter Description
sectionBreakKind Specifies the kind of section's break.
textPosition Specifies the text position at which the section is to be inserted.
callback Optional. Receives whether the section could be added.
errorCallback Optional. Is called when the operation failed with an error.