StrokeCollection::HitTest Method (IEnumerable<Point>^, StylusShape^)

 

Returns a collection of strokes that intersect with the specified path.

Namespace:   System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

public:
StrokeCollection^ HitTest(
	IEnumerable<Point>^ path,
	StylusShape^ stylusShape
)

Parameters

path
Type: System.Collections.Generic::IEnumerable<Point>^

An array to type Point that represents the path to be hit tested.

stylusShape
Type: System.Windows.Ink::StylusShape^

The StylusShape that specifies the shape of eraserPath.

Return Value

Type: System.Windows.Ink::StrokeCollection^

A StrokeCollection of strokes that intersect with path.

The following example changes the color of all the strokes that intersect the path that is created by the Point array. This example assumes that there is an InkPresenter called presenter.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: