The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Document.Sections Property

Provides access to a collection of sections.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

SectionCollection Sections { get; }
ReadOnly Property Sections As SectionCollection
SectionCollection Sections { get; }
ReadOnly Property Sections As SectionCollection

Property Value

Type Description
SectionCollection

A SectionCollection interface defining a list of sections.

Property Value

Type Description
SectionCollection

A SectionCollection interface defining a list of sections.

Examples

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
See Also