Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

Section Interface

An interface that defines a section within a document.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

[ComVisible(true)]
public interface Section

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.

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

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

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