Skip to main content
.NET Framework 4.5.2+

SectionColumns.SetColumns(SectionColumnCollection) Method

Applies the columns to the section.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v22.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core


void SetColumns(
    SectionColumnCollection columns


Name Type Description
columns SectionColumnCollection

A SectionColumnCollection representing the layout to be applied.


View Example

Document document = server.Document;
document.LoadDocument("Documents\\Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml);
document.Unit = DevExpress.Office.DocumentUnit.Inch;
// Get the first section in a document
Section firstSection = document.Sections[0];
// Create columns and apply them to the document
SectionColumnCollection sectionColumnsLayout =
    firstSection.Columns.CreateUniformColumns(firstSection.Page, 0.2f, 3);

The following code snippets (auto-collected from DevExpress Examples) contain references to the SetColumns(SectionColumnCollection) method.


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