Windows.UI.Xaml.Documents.BlockCollection

June 22, 2022 ยท View on GitHub

-description

Represents a collection of Block elements.

-remarks

Enumerating the collection in C# or Microsoft Visual Basic

You can iterate through a BlockCollection object in C# or Microsoft Visual Basic. In many cases, such as using foreach syntax, the compiler does this casting for you and you won't need to cast to IEnumerable<Block> explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast the collection object to IEnumerable<T> with a Block constraint.

-examples

-see-also

IVector<T>, IIterable<T>, IList<T>, Block, Blocks