-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Documents.BlockCollection |
winrt class |
Represents a collection of Block elements.
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.