Export (0) Print
Expand All

IXRTimelineCollection::Add (Compact 2013)

3/28/2014

This method adds an item to the end of the IXRTimelineCollection collection and retrieves the index that indicates where it was added.


virtual HRESULT STDMETHODCALLTYPE Add(
    __in IXRTimeline* pTimeline,
    __out_opt int* pIndex
) = 0;

pTimeline

[in] Pointer to an IXRTimelineobject that represents an item to add to this collection.

pIndex

[out] Optional. Pointer to an integer value that indicates the zero-based index that describes the location of the item added to this collection.

Returns an HRESULT that indicates success or failure. This method can also return the error message shown in the following table.

Value

Description

XR_E_COLLECTION_ELEMENT_ALREADY_ASSOCIATED

The element you tried to add is already associated with another collection. You must remove it from the other collection first.

Because an object cannot exist more than once in a visual tree, an item can occur only once in this object collection.

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

Show:
© 2015 Microsoft