.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Table.TableAlignment Property

Gets or sets the alignment of a table as a whole within the document.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v21.1.Core.dll

Declaration

TableRowAlignment TableAlignment { get; set; }

Property Value

Type Description
TableRowAlignment

A TableRowAlignment enumeration value that specifies how the table is aligned in a document.

Remarks

The TableAlignment property is ignored if the Table.TextWrappingType property is set to TableTextWrappingType.Around.

The TableAlignment property does not affect the table row alignment. To change the row alignment, iterate through rows and set the TableRow.TableRowAlignment property as required.

foreach(TableRow row in tab.Rows)
    row.TableRowAlignment = TableRowAlignment.Right;
See Also