This documentation is archived and is not being maintained.

Width Property (General Extensibility)

Visual Studio .NET 2003

Returns the width of the window or pane in character units.

[Visual Basic .NET]
Public ReadOnly Property Width() As Long
[Visual Basic 6]
Property Get Width() As Long
HRESULT __stdcall get_Width(
   /* [out, retval] */ long* retVal
int Width {get;}
[JScript .NET]
public function get Width() : int


Sub WidthExample()
   Dim objWin As Window
   objWin = DTE.Windows.Item(1)
   MsgBox("Window width: " & objWin.Width)
End Sub

See Also

Height Property (TextPane Object)

Applies To: TextPane Object | Window Object