officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-section-384917e5.md
Gets or sets whether to change the section’s direction to right-to-left.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
bool RightToLeft { get; set; }
Property RightToLeft As Boolean
| Type | Description |
|---|---|
| Boolean |
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.
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);
richEditControl.Document.Unit = DevExpress.Office.DocumentUnit.Inch
Dim section As Section = richEditControl.Document.Sections(0)
section.RightToLeft = True
Dim sectionColumnsLayout As SectionColumnCollection = section.Columns.CreateUniformColumns(section.Page, 0.2F, 2)
sectionColumnsLayout(0).Width = 3F
sectionColumnsLayout(1).Width = 2F
section.Columns.SetColumns(sectionColumnsLayout)
See Also