Share via


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

  • 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:

Ee502433.1edc7934-6c4f-4e4d-8d2a-3566f58b7658(en-US,WinEmbedded.60).gif

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

See Also

Reference

IXRStrokeCollection