Skip to main content
Version: 4.2

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).

public class WindowCollection : ReadOnlyCollection<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​

Instance member 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​

Instance member 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.

Instance member 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.