次の方法で共有


IXRObjectKeyFrameCollection::Insert (Compact 2013)

3/28/2014

This method inserts an item into the IXRObjectKeyFrameCollection collection at the location that the index value specifies.

Syntax

virtual HRESULT STDMETHODCALLTYPE Insert(
    __in int Index,
    __in IXRObjectKeyFrame* pObject
) = 0;

Parameters

  • Index
    [in] Integer value that indicates the zero-based index value at which pObject will be inserted.
  • pObject
    [in] Pointer to the IXRObjectKeyFrame object that represents the item to insert.

Return Value

Returns S_OK if successful; otherwise, returns an HRESULT error code. For common error codes for XAML for Windows Embedded , see XAML for Windows Embedded Error Messages.

Remarks

If Index is equal to the value that IXRObjectKeyFrameCollection::GetCount retrieves, the item is added to the end of this collection.

When an item is inserted in this collection, the subsequent items are moved to the next indexed position.

.NET Framework Equivalent

System.Windows.PresentationFrameworkCollection(T).IList.Insert

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRObjectKeyFrameCollection
IXRObjectAnimationUsingKeyFrames::GetKeyFrames