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.v24.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
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.
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);