Share via


IXRPointCollection::Remove (Compact 2013)

3/28/2014

This method removes the last occurrence of a specific item from the IXRPointCollection collection.

Syntax

virtual HRESULT STDMETHODCALLTYPE Remove(
    __in XRPoint* pPoint
) = 0;

Parameters

  • pPoint
    [in] Pointer to an XRPoint object that represents an item to remove from this collection.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

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

When the collection contains duplicate values at different indexes, this method searches the collection for each duplicate value in reverse order, starting at the last occurrence of the value, and ending with the first occurrence of the value.

Therefore, if this collection contains the item more than once, it will remove the last occurrence of the item.

.NET Framework Equivalent

System.Windows.PresentationFrameworkCollection(T).Remove

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRPointCollection
IXRPolyLineSegment::GetPoints
IXRPolyLineSegment::SetPoints
IXRPolyBezierSegment::GetPoints
IXRPolyBezierSegment::SetPoints
IXRPolyQuadraticBezierSegment::GetPoints
IXRPolyQuadraticBezierSegment::SetPoints
IXRPolygon::GetPoints
IXRPolygon::SetPoints
IXRPolyline::GetPoints
IXRPolyline::SetPoints