Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.62 KB

gradientstopcollection.md

File metadata and controls

39 lines (26 loc) · 1.62 KB
-api-id -api-type
T:Windows.UI.Xaml.Media.GradientStopCollection
winrt class

Windows.UI.Xaml.Media.GradientStopCollection

-description

Represents a collection of GradientStop objects that can be individually accessed by index.

-xaml-syntax

<object>
  <object.property>
    oneOrMoreGradientStops
  </object.property>
</object>

-remarks

Enumerating the collection in C# or Microsoft Visual Basic

A GradientStopCollection 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<GradientStop> explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast to IEnumerable<T> with a GradientStop constraint.

-examples

-see-also

IVector<T>, IIterable<T>, IList<T>