Share via


WindowCollection.Count Property

Gets a count of the number of Window objects contained in the WindowCollection collection.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As WindowCollection
Dim value As Integer

value = instance.Count
public abstract int Count { get; }

Property Value

Type: System.Int32
The number of Window objects contained in the WindowCollection collection.

Remarks

This member can be accessed without restrictions.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

Examples

The following example sets a variable to the number of windows in the WindowCollection collection.

int windowCount = this.Application.Windows.Count;
Dim windowCount As Integer  = Me.Application.Windows.Count

See Also

Reference

WindowCollection Class

WindowCollection Members

Microsoft.Office.InfoPath Namespace