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. |
Range | The width of the range. |
Window | The width of the window. Use the UsableWidth property to determine the maximum size for the window.
You cannot set this property if the window is maximized or minimized. Use the WindowState property to determine the window state. |
ChartArea, ChartObject, Legend, OLEObject, PlotArea, Shape, ShapeRange, Window | The width of the object. Read-only for ChartArea. |
If the window is minimized, Application.Width
is read-only and returns the width of the window icon.