Back to Devexpress

RichEditCommands.changeTableRowPreferredHeight Property

aspnet-js-richeditcommands-0056f581.md

latest1.7 KB
Original Source

RichEditCommands.changeTableRowPreferredHeight Property

Gets a command to change the selected table rows’ preferred height.

Declaration

ts
get changeTableRowPreferredHeight(): ChangeTableRowPreferredHeightCommand

Property Value

TypeDescription
ChangeTableRowPreferredHeightCommand

An object that provides methods that execute the command and check its state.

|

Remarks

Call the execute(preferredHeight) method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.

The command includes size parameters assigned in twips. Use the ASPxClientRichEdit.unitConverter to convert size measure units (inches, points, pixels, centimeters) to twips.

Usage example:

javascript
var rowHeightSettings = {
    type: ASPx.TableHeightUnitType.Minimum,
    value: richEdit.unitConverter.pixelsToTwips(75)
}
richEdit.commands.changeTableRowPreferredHeight.execute(rowHeightSettings)

Applying height settings to selected table cells may lead to changing the height of the corresponding table rows.

Refer to the following section for more information: Client Commands.

See Also

RichEditCommands Class

RichEditCommands Members