.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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.v21.1.Core.dll


Section AppendSection()


Type Description

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


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:

DevExpress.XtraRichEdit.API.Native.Section sApp = wordProcessor.Document.Sections[richEditControl.Document.Sections.Count - 1];
See Also