Height Property

Applies To

Application object, Axis object, Chart object, ChartArea object, DataSheet object, Legend object, LegendEntry object, LegendKey object, PlotArea object.

Description

Returns or sets the height of an object, in points. Read/write Long, except as shown in the following table.

Remarks

The meaning of the Height property depends on the specified object.

Object type

Height

Application

The height of the main application window. On the Macintosh, this is always equal to the total height of the screen, in points. Setting this value to something else on the Macintosh will have no effect. In Windows, if the window is minimized, this property is read-only and refers to the height of the icon. If the window is maximized, this property cannot be set. Use the WindowState property to determine the window state.

Axis, LegendEntry, LegendKey

The height of the object. Read-only.

ChartArea, Chart, DataSheet, Legend, PlotArea

The height of the object.


See Also

Left property, Top property, Width property.

Example

This example sets the height of the chart legend to 1 inch (72 points).

myChart.Legend.Height = 72