Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

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.v20.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

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;

The following code snippets (auto-collected from DevExpress Examples) contain references to the TableAlignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also