DS Server

Javascript: TableRow.getMinimumHeight Method

Method|Introduced in 28.0

Description

Gets the minimum height, in twips, of the table row. The table row is formatted with this height if the text is smaller. Otherwise the row grows as necessary. If the property value is zero, the table row's height is always determined through the containing text.

Syntax

<void> TableRow.getMinimumHeight(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the minimum height.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates TableRow.getMinimumHeight in a practical document-editing workflow. It gets the minimum height, in twips, of the table row. The table row is formatted with this height if the text is smaller. Otherwise the row grows as necessary. If the property value is zero, the table row's height is always determined through the containing text.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectMinimumHeight(tableRow) {
    tableRow.getMinimumHeight(
        function(result) {
            console.log("get minimum height result:", result);
        },
        onTxError
    );
}