Left Property

Home Page (Objects)OverviewFAQReference

Applies to: Application object, TextWindow object, Window object

Gets or sets the x-coordinate of a window's left edge in pixels.

Syntax

object.Left [=value]

Parameters

object

An expression that evaluates to one of the objects in the Applies To list above. When you access the Left 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 x-coordinate of the window's left edge in pixels.

Remarks

The Left property has the Long type.

If object is the Application object, the Left property gets or sets the distance in pixels between the left edge of the screen and the main application window. If object is a Window object, the Left property gets or sets the distance in pixels between the left edge of the main window and this window.

Note   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 x-coordinate of the active window to 25:

ActiveWindow.Left = 25

See Also   Height property, Top property, Width property.