Export (0) Print
Expand All

Window.Left Property

Gets or sets the position of the window's left edge, in relation to the desktop. This is a dependency property.

Namespace: System.Windows
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

'Declaration
<TypeConverterAttribute("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")> _
Public Property Left As Double
'Usage
Dim instance As Window
Dim value As Double

value = instance.Left

instance.Left = value
/** @property */
public double get_Left ()

/** @property */
public void set_Left (double value)

public function get Left () : double

public function set Left (value : double)

<object Left="double" .../>

Property Value

The position of the window's left edge, in logical units (1/96th of an inch).

Identifier field

LeftProperty

Metadata properties set to true

None

If you do not specify a value, Left is set to the system default value. You can also specify the system default value by setting Left to NaN. Neither NegativeInfinity nor PositiveInfinity are valid values for Left.

NoteNote:

You cannot set or get this property when a window is hosted in a browser.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft