.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

SectionColumns.SetColumns(SectionColumnCollection) Method

Applies the columns to the section.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

void SetColumns(
    SectionColumnCollection columns
)
Sub SetColumns(
    columns As SectionColumnCollection
)
void SetColumns(
    SectionColumnCollection columns
)
Sub SetColumns(
    columns As SectionColumnCollection
)
void SetColumns(
    SectionColumnCollection columns
)
Sub SetColumns(
    columns As SectionColumnCollection
)

Parameters

Name Type Description
columns SectionColumnCollection

A SectionColumnCollection representing the layout to be applied.

Parameters

Name Type Description
columns SectionColumnCollection

A SectionColumnCollection representing the layout to be applied.

Parameters

Name Type Description
columns SectionColumnCollection

A SectionColumnCollection representing the layout to be applied.

Examples

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);
firstSection.Columns.SetColumns(sectionColumnsLayout);
See Also