StrokeCollection::HitTest Method (IEnumerable<Point>^, StylusShape^)
.NET Framework (current version)
Returns a collection of strokes that intersect with the specified path.
Assembly: PresentationCore (in PresentationCore.dll)
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.
.NET Framework
Available since 3.0
Available since 3.0
Show: