Compartilhar via


IXRStylusPointCollection::Contains (Compact 2013)

3/28/2014

This method determines whether an item is in the IXRStylusPointCollection collection.

Syntax

virtual bool STDMETHODCALLTYPE Contains(
    __in IXRStylusPoint* pStylusPoint
) = 0;

Parameters

  • pStylusPoint
    [in] Pointer to an IXRStylusPoint object that represents the item to locate in this collection.

Return Value

Returns true if the item is found in the collection; otherwise, false.

Remarks

This method performs a linear search. Therefore, the average execution time is proportional to the number of items in the collection, which you can retrieve by using IXRStylusPointCollection::GetCount.

.NET Framework Equivalent

System.Windows.PresentationFrameworkCollection(T).Contains

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRStylusPointCollection
XRMouseEventArgs
IXRStroke::SetStylusPoints
IXRStroke::GetStylusPoints
IXRStroke::HitTest
IXRStrokeCollection::HitTest