CompositionColorGradientStopCollection CompositionColorGradientStopCollection CompositionColorGradientStopCollection CompositionColorGradientStopCollection Class

Definition

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

public : sealed class CompositionColorGradientStopCollection
struct winrt::Windows::UI::Composition::CompositionColorGradientStopCollection
public sealed class CompositionColorGradientStopCollection
Public NotInheritable Class CompositionColorGradientStopCollection
Attributes

Windows 10 requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Properties

Size Size Size Size

Gets the size (count) of the collection.

Methods

Append(CompositionColorGradientStop) Append(CompositionColorGradientStop) Append(CompositionColorGradientStop) Append(CompositionColorGradientStop)

Adds a new item to the collection.

Clear() Clear() Clear() Clear()

Removes all items from the collection.

First() First() First() First()

Returns an iterator for the items in the collection.

GetAt(UInt32) GetAt(UInt32) GetAt(UInt32) GetAt(UInt32)

Returns the item located at the specified index.

GetMany(UInt32, CompositionColorGradientStop[]) GetMany(UInt32, CompositionColorGradientStop[]) GetMany(UInt32, CompositionColorGradientStop[]) GetMany(UInt32, CompositionColorGradientStop[])

Retrieves multiple elements in a single pass through the iterator.

GetView() GetView() GetView() GetView()

Gets an immutable view into the collection.

IndexOf(CompositionColorGradientStop, UInt32) IndexOf(CompositionColorGradientStop, UInt32) IndexOf(CompositionColorGradientStop, UInt32) IndexOf(CompositionColorGradientStop, UInt32)

Retrieves the index of the specified item.

InsertAt(UInt32, CompositionColorGradientStop) InsertAt(UInt32, CompositionColorGradientStop) InsertAt(UInt32, CompositionColorGradientStop) InsertAt(UInt32, CompositionColorGradientStop)

Inserts the specified item at the specified index.

RemoveAt(UInt32) RemoveAt(UInt32) RemoveAt(UInt32) RemoveAt(UInt32)

Removes the item at the specified index.

RemoveAtEnd() RemoveAtEnd() RemoveAtEnd() RemoveAtEnd()

Removes the last item in the collection.

ReplaceAll(CompositionColorGradientStop[]) ReplaceAll(CompositionColorGradientStop[]) ReplaceAll(CompositionColorGradientStop[]) ReplaceAll(CompositionColorGradientStop[])

Initially clears the collection, then inserts the provided array as new items.

SetAt(UInt32, CompositionColorGradientStop) SetAt(UInt32, CompositionColorGradientStop) SetAt(UInt32, CompositionColorGradientStop) SetAt(UInt32, CompositionColorGradientStop)

Sets the value at the specified index to the CompositionColorGradientStop value specified.