Admin Production ni-theme
Current Publication

SetRowHeightToTallestCellContents

LabWindows/CVI

SetRowHeightToTallestCellContents

int SetRowHeightToTallestCellContents (int panelHandle, int controlID, int rowIndex);

Purpose

Sets the height of the specified table row to the height of the row's tallest cell contents.

This function has effect only if the ATTR_SIZE_MODE attribute of the specified row is set to VAL_USE_EXPLICIT_SIZE.

Supported Controls

You can use SetRowHeightToTallestCellContents with table controls.

Parameters

Input
Name Type Description
panelHandle int Specifier for a particular panel that is currently in memory. You can obtain this handle from functions such as LoadPanel and NewPanel.
controlID int The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by functions such as NewCtrl and DuplicateCtrl.
rowIndex int One-based index of the row for which you want to set the height.

Return Value

Name Type Description
height int Returns the resulting height of the specified row. Negative values indicate that an error occurred.

Additional Information

Library: User Interface Library

Include file: userint.h

LabWindows/CVI compatibility: LabWindows/CVI 9.0 and later