Back to Devexpress

TableRowHeightType Enum

aspnetcore-js-devexpress-dot-richedit-5e67c039.md

latest2.4 KB
Original Source

TableRowHeightType Enum

Lists modes of row height calculation.

Declaration

ts
export enum TableRowHeightType {
    Minimum = 0,
    Auto = 1,
    Exact = 2
}

Members

NameDescription
Auto

The TableRowHeight.value property does not affect the row height. The height is calculated automatically based on content.

| | Exact |

The TableRowHeight.value property specifies the row height in twips.

| | Minimum |

The TableRowHeight.value property specifies the row minimum height in twips. The component can increase the height of a row to fit its content.

|

Remarks

Use the TableRow property to specify the row height. You can change the following height settings:

height.valueExplicitly specifies the row height in twips.height.typeAllows you to switch between the following row height calculation modes:

  • Auto – The TableRowHeight.value property does not affect the row height. The height is calculated automatically based on content.
  • Exact – The TableRowHeight.value property specifies the row height in twips.
  • Minimum – The TableRowHeight.value property specifies the row minimum height in twips. The component can increase the height of a row to fit its content.

The following code snippet adjusts the first row’s height according to content:

js
const subDocument = richEdit.selection.activeSubDocument;
const table = subDocument.tables.getByIndex(0);
const firstRow = table.rows.getByIndex(0);
firstRow.height.type = DevExpress.RichEdit.TableRowHeightType.Auto;