Class WindowCollection
- Namespace
- nanoFramework.UI
- Assembly
- nanoFramework.Graphics.dll
WindowCollection can be used to interate over all the windows that have been opened in the current application.
public sealed class WindowCollection : ICollection, IEnumerable
- Inheritance
-
WindowCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
WindowCollection()
Default constructor for the WindowCollection class.
public WindowCollection()
Properties
Count
Gets the number of windows contained in the WindowCollection.
public int Count { get; }
Property Value
IsSynchronized
Gets a value indicating whether access to the WindowCollection is synchronized (thread safe).
public bool IsSynchronized { get; }
Property Value
this[int]
Gets the Window object at the specified index.
public Window this[int index] { get; }
Parameters
index
intThe zero-based index of the window to retrieve.
Property Value
- Window
The Window object at the specified index.
SyncRoot
Gets an object that can be used to synchronize access to the WindowCollection.
public object SyncRoot { get; }
Property Value
Methods
CopyTo(Window[], int)
Copies the elements of the WindowCollection to an Array, starting at a particular Array index.
public void CopyTo(Window[] array, int index)
Parameters
array
Window[]The one-dimensional Array that is the destination of the elements copied from WindowCollection.
index
intThe zero-based index in array at which copying begins.
GetEnumerator()
Returns an enumerator that iterates through the WindowCollection.
public IEnumerator GetEnumerator()
Returns
- IEnumerator
An IEnumerator object that can be used to iterate through the collection.