Height Property

Returns or sets the height of the object in the client area of its container.

Syntax

Object.Height [ = fHeight ]

The Height property syntax has the following parts:

 

Name

Type

Description

Object

Object

An object

fHeight

Float

A number specifying the height of the object in the client area of its container.

Comments

The following table describes how the Height property is used:

 

Object

Description

Controls

The Height property is measured from the top of the control's border so that controls with different border widths align correctly. The Height is measured in the scale units of the control's container. If the scale units are not defined, the default is pixels.

AForm

The Height property is measured in the scale units of the ScaleMode property and includes the borders and titlebar. If the scale units are not defined, the default is pixels.

AAxis

The Height property is the number of scale units in external height on the AChart object, including the borders and titlebar. If the scale units are not defined, the default is pixels.

AThumb

The Height property is the number of scale units in external height on the ASlider object, including the borders and titlebar. If the scale units are not defined, the default is pixels.

Use the Height, Width, Left, and Top properties for operations or calculations based on an object's total area, such as sizing or moving the object. Use the ScaleLeft, ScaleTop, ScaleHeight, and ScaleWidth properties for operations or calculations based on an object's internal area, such as drawing or moving objects within another object.

Example

The following statement changes the AButton's Height so the button is twelve units high on the form:

btn1.Height=12

Applies to

All controls that can be visible at run time and the following classes:

 

AAxis

AForm

AThumb

See Also

Left, ScaleHeight, ScaleMode, Top, Width