WindowCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Holds the collection of all top-level application windows (i.e. Forms and Pages).
- C#
- VB.NET
public class WindowCollection : ReadOnlyCollection<IWisejWindow>
Public Class WindowCollection
Inherits ReadOnlyCollection(Of IWisejWindow)
Derives from or implements ReadOnlyCollection.
The collection is read-only and thread-safe. Enumerating the collection returns a snapshot of the windows that were open when the enumeration started.
Properties
Item(name)
IWisejWindow: Returns the first window with the specified name, the search is case insensitive.
Value: The IWisejWindow with the specified name, or null if not found.
Methods
GetEnumerator()
Returns an enumerator that iterates through a snapshot of the open windows.
Returns: IEnumerator<IWisejWindow>. An IEnumerator over the windows that were open when the method was called.
ToArray()
Returns an array with the windows currently open.
Returns: IWisejWindow[]. A new array containing the windows that are open when the method is called.