Skip to main content

Document.AppendSection() Method

Appends a new empty section and returns the section to which this section is appended.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

Declaration

Section AppendSection()

Returns

Type Description
Section

A Section object that is the section in the document to which a new section is appended.

Remarks

When you create a new section, it’s automatically linked to the previous section and the content from the first section header is automatically inserted in the second section header. Remove this content before inserting a new content to the header. Call the SubDocument.Delete() method to clear the header.

To get a newly appended section, use the following code:

wordProcessor.Document.AppendSection();
DevExpress.XtraRichEdit.API.Native.Section sApp = wordProcessor.Document.Sections[richEditControl.Document.Sections.Count - 1];

The following code snippets (auto-collected from DevExpress Examples) contain references to the AppendSection() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also