Width Property (Window object)

Read-only. A Long type property. Returns the width of the window in pixels.

Applies to: Window object

Syntax

[[Let] widthRet = ] object.Width

The Width property syntax has these parts:

Part Description
object Required. An expression that returns a Window object.
widthRet Optional. A Long type variable.

Remarks

Note, that window coordinates and dimensions are measured in screen pixels. To change the position and dimensions of a window, use the SetWindowRect method.

 

See Also

Left property, Top property, Height property, SetWindowRect method