The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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.v19.1.Core.dll

Declaration

bool RightToLeft { get; set; }
Property RightToLeft As Boolean
bool RightToLeft { get; set; }
Property RightToLeft As Boolean

Property Value

Type Description
Boolean

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

Property Value

Type Description
Boolean

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

Remarks

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