SectionCollection.Add Method |
| Description: | | Adds a new section to a document. The first implementation adds the new section at the current text input position and the second implementation adds the 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.
|
| Syntax: | | [C#]
public bool Add(SectionBreakKind sectionBreakKind);
public bool Add(SectionBreakKind sectionBreakKind, int textPosition);
[Visual Basic]
Public Function Add(ByVal sectionBreakKind As SectionBreakKind) As Boolean
Public Function Add(ByVal sectionBreakKind As SectionBreakKind, ByVal textPosition As Integer) As Boolean
|
| | | Parameter | | Description | | | | sectionBreakKind | | Specifies the kind of the section break. The following values are possible:
| Value | | Meaning | | | | 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.
|
| See also: | | Sections and Pages, Graphical Overview. |