Share via


FormControl.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 value that specifies the height in pixels; optional.

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 control.

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

See Also

FormControl Class

FormControl.heightMode Method

FormControl.height Method