Compartilhar via


IXRTransformCollection::Remove (Compact 2013)

3/28/2014

This method removes a specific item from this collection.

Syntax

virtual HRESULT STDMETHODCALLTYPE Remove(
    __in IXRTransform* pObject
) = 0;

Parameters

  • pObject
    [in] Pointer to an IXRTransform object that represents the item to remove from the collection.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

This method performs a linear search through the collection, beginning at the last item. Therefore, the average execution time is proportional to the number of items in the collection. You can retrieve this number by calling IXRTransformCollection::GetCount.

Generally, Remove deletes the last occurrence of an item. However, because an object cannot exist more than once in a visual tree, an item can occur only once in this object collection.

.NET Framework Equivalent

System.Windows.PresentationFrameworkCollection(T).Remove

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTransformCollection
IXRTransformGroup::GetChildren
IXRTransformGroup::SetChildren