Skip to main content
.NET Framework 4.5.2+

Section.RightToLeft Property

Gets or sets whether to change the section’s direction to right-to-left.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Package: DevExpress.RichEdit.Core


bool RightToLeft { get; set; }

Property Value

Type Description

true, to change the section’s direction; otherwise, false.


Use the RightToLeft property to change the direction of a multi-column section.

This property’s value does not affect sections with one column. Specify the Paragraph.RightToLeft property for all section’s paragraphs to change the direction of a regular section.

Specify the TablePropertiesBase.RightToLeftTableLayout or Table.RightToLeft properties to change the table’s direction.

The code sample below divides a section into two columns and specifies the section direction, so the columns appear as follows. image

richEditControl.Document.Unit = DevExpress.Office.DocumentUnit.Inch;
Section section = richEditControl.Document.Sections[0];
section.RightToLeft = true;
SectionColumnCollection sectionColumnsLayout =  section.Columns.CreateUniformColumns(section.Page, 0.2f, 2);
// Set different column width.
sectionColumnsLayout[0].Width = 3f;
sectionColumnsLayout[1].Width = 2f;
// Apply layout to the document.
See Also