Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TableContentVerticalAlignment Enum

List the vertical alignment options for table content.

#Declaration

TypeScript
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:

js
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;