Section Interface
An interface that defines a section within a document.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v18.2.Core.dll
Declaration
Related API Members
The following members return Section objects:
Remarks
All document sections are represented by the SectionCollection, which is accessible via the Document.Sections property.
Example
The following code specifies the page layout settings for the first section of the document: the A6 paper in landscape orientation with the left margin set to two inches.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-richedit-document-api-e5219
document.Unit = DevExpress.Office.DocumentUnit.Inch
document.Sections(0).Page.PaperKind = System.Drawing.Printing.PaperKind.A6
document.Sections(0).Page.Landscape = True
document.Sections(0).Margins.Left = 2.0F
See Also