-api-id | -api-type |
---|---|
T:Microsoft.UI.Xaml.Media.BrushCollection |
winrt class |
Represents an ordered collection of Brush values.
A BrushCollection is enumerable, so you can use language-specific syntax such as foreach in C# to enumerate the items in the collection. The compiler does the type-casting for you and you won't need to cast to IEnumerable<Brush>
explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast to IEnumerable with a Brush constraint.