次の方法で共有


Window2.Width プロパティ

WindowObject オブジェクトによって表されるウィンドウの幅を、ポイント単位で取得または設定します。

名前空間: Microsoft.Office.Interop.InfoPath
アセンブリ: Microsoft.Office.Interop.InfoPath (microsoft.office.interop.infopath.dll 内)

構文

'宣言
<DispIdAttribute(12)> _
Property Width As Integer
'使用
Dim instance As Window2
Dim value As Integer

value = instance.Width

instance.Width = value
[DispIdAttribute(12)] 
int Width { get; set; }

コメント

最小化または最大化しているウィンドウに対して Width プロパティを設定すると、エラーが返されます。

Width プロパティは、UsableWidth によって返される値よりも大きい値に設定することはできません。

関連項目

参照

Window2 インターフェイス
Window2 のメンバ
Microsoft.Office.Interop.InfoPath 名前空間