次の方法で共有


Window.Width プロパティ

ウィンドウの幅を文字単位で取得または設定します。

名前空間:  EnvDTE
アセンブリ:  EnvDTE (EnvDTE.dll 内)

構文

'宣言
Property Width As Integer
int Width { get; set; }
property int Width {
    int get ();
    void set (int value);
}
abstract Width : int with get, set
function get Width () : int 
function set Width (value : int)

プロパティ値

型 : Int32
ウィンドウの幅 (文字単位)。

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

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

Window インターフェイス

EnvDTE 名前空間