Share via


FormTreeControl.heightValue Method

Gets or sets the height of the control.

Syntax

public int heightValue([int value])

Run On

Client

Parameters

  • value
    Type: int
    An Integer data type that specifies the height in pixels.

Return Value

Type: int
The height in pixels.

Remarks

The height of the control is not changed unless the Exact height calculation mode is used.

Examples

The following example shows how to return and set the height value of a form tree control.

int nHeightValue; 
 
// The ctrl variable was previously assigned 
// as a form tree control variable. 
 
// Retrieve the height value. 
nHeightValue = ctrl.heightValue(); 
 
// Set the height value. 
ctrl.heightMode(-1); 
ctrl.heightValue(160);

See Also

FormTreeControl Class

FormTreeControl.heightMode Method

FormTreeControl.height Method