Back to Devexpress

TablePropertiesBase.RightToLeftTableLayout Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablepropertiesbase-729cb8f3.md

latest2.9 KB
Original Source

TablePropertiesBase.RightToLeftTableLayout Property

Specifies whether to change the table layout’s direction to right-to-left.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
bool? RightToLeftTableLayout { get; set; }
vb
Property RightToLeftTableLayout As Boolean?

Property Value

TypeDescription
Nullable<Boolean>

true , to change the table direction, false to keep the left-to-right direction, or null ( Nothing for VB) for a mixture of states.

|

Remarks

Set the RightToLeftTableLayout property to true to reorder table columns and apply the table indent (specified by the Table.Indent property) to the right side of the table. The image below shows the resulting table appearance:

Use the ParagraphPropertiesBase.RightToLeft property to change the reading order of cells’ content. You can specify this property for a given paragraph or as a table style parameter, as shown below:

csharp
document.BeginUpdate();

// Create a new table style:
TableStyle tStyleMain = document.TableStyles.CreateNew();

// Set the table layout direction:
tStyleMain.RightToLeft = true;

// Set the table content direction:
tStyleMain.RightToLeftTableLayout = true;

tStyleMain.Name = "MyTableStyle";

// Add the style to the collection:
document.TableStyles.Add(tStyleMain);
document.EndUpdate();
vb
document.BeginUpdate()

' Create a new table style:
Dim tStyleMain As TableStyle = document.TableStyles.CreateNew()

' Set table layout direction:
tStyleMain.RightToLeft = True

' Set table content direction:
tStyleMain.RightToLeftTableLayout = True

tStyleMain.Name = "MyTableStyle"

' Add style to the collection:
document.TableStyles.Add(tStyleMain)
document.EndUpdate()

See Also

TablePropertiesBase Interface

TablePropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace