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

SectionColumn Class

An individual column in the layout.

Namespace: DevExpress.XtraRichEdit.API.Native

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


public class SectionColumn


This code snippet uses the Document.Sections property to get access to the section in the document and calls the SectionColumns.CreateUniformColumns method to create a multicolumn layout with the current Section.Page section settings. Subsequently the column width is modified and the resulting layout is applied to the section using the SectionColumns.SetColumns method.

document.LoadDocument("Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml)
document.Unit = DevExpress.Office.DocumentUnit.Inch
' Get the first section in a document.
Dim firstSection As Section = document.Sections(0)
' Create equal width column layout.
Dim sectionColumnsLayout As SectionColumnCollection = firstSection.Columns.CreateUniformColumns(firstSection.Page, 0.2F, 3)
' Set different column width.
sectionColumnsLayout(0).Width = 3F
sectionColumnsLayout(1).Width = 2F
sectionColumnsLayout(2).Width = 1F
' Apply layout to the document.


See Also