Adds a new section to a document.

Add(SectionBreakKind)

public bool Add(SectionBreakKind sectionBreakKind);
Public Function Add(ByVal sectionBreakKind As SectionBreakKind) As Boolean

Add(SectionBreakKind, Int)

public bool Add(SectionBreakKind sectionBreakKind, int textPosition);
Public Function Add(ByVal sectionBreakKind As SectionBreakKind, ByVal textPosition As Integer) As Boolean

Parameters

Parameter Description
sectionBreakKind Specifies the kind of the section break. It can be one of the SectionBreakKind values. The following values are possible:
Event Description
BeginAtNewLine The section begins on the next line with a new paragraph.
BeginAtNewPage The section begins on the next page with a new paragraph.
textPosition Specifies the text position at which the section is to be inserted.

Return Value

The return value is true, if the section could be added. Otherwise it is false.