Skip to main content

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.v24.1.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

TableRowAlignment TableAlignment { get; set; }

Property Value

Type Description
TableRowAlignment

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

Available values:

Name Description
Both

Justified.

Center

Align center.

Distribute

Distribute all characters equally.

Left

Align left.

NumTab

Align to the list tab.

Right

Align right.

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