Partager via


IXRTransformCollection::Insert (Compact 2013)

3/28/2014

This method inserts an item into this collection at the location that has the specified index value.

Syntax

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

Parameters

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

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

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

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

A value of -1 is not valid for Index; if Index is -1, the item is not appended to the end of the collection.

.NET Framework Equivalent

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

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTransformCollection
IXRTransformGroup::GetChildren
IXRTransformGroup::SetChildren