Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.49 KB

blockcollection.md

File metadata and controls

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

Microsoft.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 with a Block constraint.

-examples

-see-also

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