Back to Devexpress

TableContentVerticalAlignment Enum

aspnetcore-js-devexpress-dot-richedit-e93c80f8.md

latest1.5 KB
Original Source

TableContentVerticalAlignment Enum

List the vertical alignment options for table content.

Declaration

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

Members

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