Share via


Height Property

Home Page (Objects)OverviewFAQReference

Applies to: Application object, TextWindow object, Window object

Gets or sets the height of a window in pixels.

Syntax

object**.Height** [=value]

Parameters

object

An expression that evaluates to one of the objects in the Applies To list above. When you access the Height property of the Application object, you can omit object because the name of the Application object is implied when you access its properties and methods.

value

A Long that sets the height of the window in pixels.

Remarks

The Height property has the Long type.

If object is the Application object, the Height property gets or sets the distance in pixels between the top and bottom edge of the main application window. If object is a Window or TextWindow object, the Height property gets or sets the distance in pixels between the top and bottom edge of that window.

Multiple Document Interface (MDI) child window coordinates are relative to the child window client area. (This area is inside the frame but does not include the docking sites.)

Example

The following example sets the height of the active window to 150 pixels:

ActiveWindow.Height = 150

See Also   Left property, Top property, Width property.