WindowCollection.Count プロパティ
Window コレクションに含まれている WindowCollection オブジェクトの数を取得します。
名前空間: Microsoft.Office.InfoPath
アセンブリ: Microsoft.Office.InfoPath (microsoft.office.infopath.dll 内)
構文
'宣言
Public MustOverride ReadOnly Property Count As Integer
'使用
Dim instance As WindowCollection
Dim value As Integer
value = instance.Count
public abstract int Count { get; }
プロパティ値
WindowCollection コレクションに含まれている Window オブジェクトの数。
コメント
このメンバは制限なしでアクセスできます。
この型またはメンバは、Microsoft Office InfoPath 2007 で開いているフォームで実行されているコードからのみアクセスできます。
例
次の例は、変数を WindowCollection コレクション内のウィンドウの数に設定します。
int windowCount = this.Application.Windows.Count;
Dim windowCount As Integer = Me.Application.Windows.Count
関連項目
参照
WindowCollection クラス
WindowCollection のメンバ
Microsoft.Office.InfoPath 名前空間