Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.49 KB

blockcollection.md

File metadata and controls

29 lines (18 loc) · 1.49 KB
-api-id -api-type
T:Windows.UI.Xaml.Documents.BlockCollection
winrt class

Windows.UI.Xaml.Documents.BlockCollection

-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