Skip to main content
All docs
V24.2

TableContentVerticalAlignment Enum

List the vertical alignment options for table content.

Declaration

export enum TableContentVerticalAlignment {
    Top = 0,
    Center = 2,
    Bottom = 3
}

Members

Name Description
Bottom

Bottom alignment.

Center

Center alignment.

Top

Top alignment.

Remarks

Use the Table.contentVerticalAlignment property to vertically align content in all table cells. The TableCell.contenVerticalAlignment property allows you vertically align content in a particular cell.

Note

A cell’s contentVerticalAlignment property takes priority over the table’s contentVerticalAlignment property.

The following example centers content vertically in the entire table and aligns a particular cell’s content to the bottom:

const subDocument = richEdit.selection.activeSubDocument;
const table = subDocument.tables.getByIndex(0);
table.contentVerticalAlignment = DevExpress.RichEdit.TableContentVerticalAlignment.Center;
cell = table.rows.getByIndex(0).cells.getByIndex(0);
cell.contentVerticalAlignment = DevExpress.RichEdit.TableContentVerticalAlignment.Bottom;