Export (0) Print
Expand All
ID
Top
Expand Minimize

Height Property (Window Object)

Visual Studio .NET 2003

Sets or returns a value indicating the dimensions of the window in pixels.

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

Parameters

NewValue
The new dimensions of the window in pixels.

Example

Sub HeightExample()
   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

Show:
© 2014 Microsoft