HitTest Method (IEnumerable(Point), StylusShape)

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


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

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

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.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft