Edit

Share via


WindowCollection.Count Property

Definition

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

public:
 abstract property int Count { int get(); };
public abstract int Count { get; }
member this.Count : int
Public MustOverride ReadOnly Property Count As Integer

Property Value

The number of Window objects contained in the WindowCollection collection.

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

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.

Applies to