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+
.NET Core 3.0+

Table.RightToLeft Property

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

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

bool RightToLeft { get; set; }
Property RightToLeft As Boolean
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 table direction; otherwise, false.

Property Value

Type Description
Boolean

true, to change the table direction; otherwise, false.

Property Value

Type Description
Boolean

true, to change the table direction; otherwise, false.

Remarks

Setting the RightToLeft property to true reorders table columns and applies the table indent (specified by the Table.Indent property) to the right side of the table. The image below shows the resulting table appearance:

IMAGE

Use the ParagraphProperties.RightToLeft property to change the reading order of cells' content, as shown below:

private void ChangeTableDirection(Document document)
{
  //Create a table:
  Table table = document.Tables.Create(document.Range.End, 2, 2);

  //Change the table layout direction:
  table.RightToLeft = true;

  //Change the table content direction:
  table.ForEachCell((cell, rowIndex, columnIndex) =>
  {
      //Start the cell content update:
      SubDocument cellContent = cell.ContentRange.BeginUpdateDocument();

      //Insert text to each cell:
      cellContent.InsertText(cell.Range.Start, );

      //Access the content's paragraph properties:
      ParagraphProperties paragraphProperties = cellContent.BeginUpdateParagraphs(cellContent.Range);

      //Specify the paragraph's reading order:
      paragraphProperties.RightToLeft = true;

      //Finalize the paragraph's and the content's update:
      cellContent.EndUpdateParagraphs(paragraphProperties);
      cell.ContentRange.EndUpdateDocument(cellContent);
  });
See Also