TXTextControl.TXTextControl.SectionInsert Method

Inserts a section break at the text input position or at a specified position.

Introduced: 14.0.

Syntax

TXTextControl.SectionInsert BreakKind, TextPos
Parameter Description
BreakKind

Specifies the kind of the section break. It can be one of the following Constants:


Value Description
txBeginAtNewLine The section begins on the next line with a new paragraph.
txBeginAtNewPage The section begins on the next page with a new paragraph.
TextPos

Specifies the text position at which the section is to be inserted. If this parameter is -1, the section break is inserted at the current text input position.

Return Value

The return value is True, if the section break could be added. Otherwise it is False.

Data Types

BreakKind: Integer
TextPos: Long
Return value: Boolean

See Also