Back to Devexpress

SectionColumns Interface

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-6fc76674.md

latest2.5 KB
Original Source

SectionColumns Interface

Represents an interface for creating, applying and retrieving a column layout of a section in a document.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[ComVisible(true)]
public interface SectionColumns
vb
<ComVisible(True)>
Public Interface SectionColumns

The following members return SectionColumns objects:

Remarks

Use the Section.Columns property to access the SectionColumns interface.

Example

View Example

csharp
Document document = server.Document;
document.LoadDocument("Documents\\Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.Docx);
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);
vb
Dim document As Document = server.Document
document.LoadDocument("Documents\Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.Docx)
document.Unit = DevExpress.Office.DocumentUnit.Inch
' Get the first section in a document
Dim firstSection As Section = document.Sections(0)
' Create columns and apply them to the document
Dim sectionColumnsLayout As SectionColumnCollection = firstSection.Columns.CreateUniformColumns(firstSection.Page, 0.2F, 3)
firstSection.Columns.SetColumns(sectionColumnsLayout)

See Also

SectionColumns Members

DevExpress.XtraRichEdit.API.Native Namespace