Export (0) Print
Expand All
ID
Top
Expand Minimize

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
[C++]
HRESULT __stdcall get_Width(
   /* [out, retval] */ long* retVal
);
[C#]
int Width {get;}
[JScript .NET]
public function get Width() : int

Example

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

Show:
© 2014 Microsoft