This documentation is archived and is not being maintained.

Left Property

Visual Studio .NET 2003

Returns or sets the distance between the internal left edge of an object and the left edge of its container.

[Visual Basic .NET]
Public Property Left() As Integer
[Visual Basic 6]
Property Get Left() As Long
Property Let Left( _
   ByVal NewValue As Long _
HRESULT __stdcall get_Left(
   /* [out, retval] */ long* retVal
HRESULT __stdcall put_Left(
   /* [in] */ long NewValue
public int Left {get; set;}
[JScript .NET]
public function get Left() : int
public function set Left(
   NewValue : int


Required. The location of the top left corner of the window on the screen in pixels.


Returns or sets the distance between the internal top corner of an object and the top left corner of its container.


Sub LeftExample()
   Dim Frame As Window
   Dim w1 As Window = DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer)
   Dim w2 As Window = DTE.Windows.Item(Constants.vsWindowKindOutput)

   ' Create a linked window frame and dock together the Solution Explorer 
   ' and Ouput windows together inside it.
   Frame = DTE.Windows.CreateLinkedWindowFrame(w1, w2, vsLinkedWindowType.vsLinkedWindowTypeDocked)
   MsgBox("Total number of windows in the linked window frame: " & Frame.LinkedWindows.Count)

   ' View some window properties.
   MsgBox("Window ObjectKind property value: " & Frame.ObjectKind)
   MsgBox("Window Caption: " & Frame.Caption)

   ' Resize the entire linked window frame.
   Frame.Width = 500
   Frame.Height = 600
   Frame.Left = 100
   MsgBox("Frame height, width, and position changed.")
End Sub

See Also

Applies To: Window Object