Window2.Width Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the width of the window in character units.
public:
property int Width { int get(); void set(int value); };
public:
property int Width { int get(); void set(int value); };
[System.Runtime.InteropServices.DispId(105)]
public int Width { [System.Runtime.InteropServices.DispId(105)] get; [System.Runtime.InteropServices.DispId(105)] set; }
[<System.Runtime.InteropServices.DispId(105)>]
[<get: System.Runtime.InteropServices.DispId(105)>]
[<set: System.Runtime.InteropServices.DispId(105)>]
member this.Width : int with get, set
Public Property Width As Integer
Property Value
The width of the window in character units.
Implements
- Attributes
Examples
This example selects the first window in the Windows
collection, and displays its Width property.
Imports EnvDTE
Imports EnvDTE80
Sub WidthExample(ByVal dte As DTE2)
Dim objWin As Window2
objWin = CType(_applicationObject.Windows.Item(1), Window2)
MsgBox("Window width of " & objWin.Caption & " is " & objWin.Width)
End Sub
using EnvDTE;
using EnvDTE80;
using System.Windows.Forms;
public void WidthExample(DTE2 dte)
{
Window2 objWin;
objWin = (Window2)_applicationObject.Windows.Item(1);
MessageBox.Show("Window width of " + objWin.Caption + " is "
+ objWin.Width);
}