Width 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 an object's width, in points. Read/write Long, except as shown in the following table.

Remarks

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

Object

Description

Application

The distance from the left edge of the application window to the right edge of the application window.

Axis, LegendEntry, LegendKey

The width of the object. Read-only.

ChartArea, Chart, DataSheet, Legend, PlotArea

The width of the object.


On the Macintosh, Application.Width is always equal to the total width of the screen, in points. Setting this value to any other value has no effect.

In Windows, if the window is minimized, Application.Width is read-only and returns the width of the window icon.

See Also

Height property, Left property, Top property.

Example

This example sets the width of the chart.

myChart.Width = 360