Delen via


TimelineMarkerCollection.SetAt(UInt32, TimelineMarker) Method

Definition

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

public:
 virtual void SetAt(unsigned int index, TimelineMarker ^ value) = IVector<TimelineMarker ^>::SetAt;
void SetAt(uint32_t const& index, TimelineMarker const& value);
public void SetAt(uint index, TimelineMarker value);
function setAt(index, value)
Public Sub SetAt (index As UInteger, value As TimelineMarker)

Parameters

index
UInt32

unsigned int

uint32_t

The index at which to set the value.

value
TimelineMarker

The value to set.

Implements

M:Windows.Foundation.Collections.IVector1.SetAt(System.UInt32,0) M:Windows.Foundation.Collections.IVector1.SetAt(unsigned int,0) M:Windows.Foundation.Collections.IVector1.SetAt(uint32_t,0)

Remarks

Collection API for TimelineMarkerCollection

A TimelineMarkerCollection is an ordered list where the order is determined by the Time value of each TimelineMarker item contained in the collection. The collection API for TimelineMarkerCollection internally processes each new item that is added to the collection and adds it at an index location that corresponds to an updated ordering of all Time values for all TimelineMarker items in the collection.

We recommend you don't use SetAt to set (change) values because the integer index position is controlled by the internal logic. Instead, iterate the collection and delete items with specific Time values or that match a complete TimelineMarker set of values.

Applies to