IXRStrokeCollection::HitTest (Windows Embedded CE 6.0)
1/6/2010
This method indicates whether a specified IXRStylusPointCollection object intersects with an IXRStrokeCollection object.
Syntax
virtual HRESULT STDMETHODCALLTYPE HitTest(
IXRStylusPointCollection* pStylusPointCollection,
IXRStrokeCollection** ppValue
) = 0;
Parameters
- pStylusPointCollection
[in] Pointer to the IXRStylusPointCollection object that is used to check for intersection with the IXRStroke objects in this collection.
- ppValue
[out] Address of a pointer to an IXRStrokeCollection object that contains the strokes that intersect with the points specified in pStylusPointCollection.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
Consider an IXRStrokeCollection named MyStrokes
that contains strokes S0, S1, and S2, and consider an IXRStylusPointCollection named mySPC
that contains points P0, P1, P2, and P3. The following illustration shows the position of these strokes and points:
If you make the following HitTest call, the IXRStrokeCollection object in ppValue will contain S1 and S2 on return.
IXRStrokeCollection myIntersectedStrokes;
MyStrokes->HitTest(mySPC, myIntersectedStrokes);
.NET Framework Equivalent
System.Windows.Ink.StrokeCollection.HitTest
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |