Height (ActiveX)

Returns or sets the dimensions of an object.

Syntax

object.Height [= number]

object.Width [= number]

The Height and Width property syntaxes have these parts:

Part Description
number A numeric expression specifying the dimensions of an object, as described in Settings.

Settings

Measurements are measured from the center of the control's border so that controls with different border widths align correctly. These properties use the scale units of a control's container.

Remarks

For a control, the values for these properties change as the object is sized by the user or by your code. Maximum limits of these properties for all objects are system-dependent.

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.