clientHeight

clientHeight(): Integer;

The clientHeight method of the Control class returns the height of the client area of a control in pixels.

The client area of a control is the area inside the border area or scroll bars where controls can be placed. The position of child controls is relative to the top left of this client area.

The code fragment in the following example shows the use of the clientHeight method.

btn.height := clientHeight / (numOfRows + 1);

See also the clientHeight property of the Form class.