Stroke.HitTest Method

Returns whether the Stroke intersects or is within a certain area.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method HitTest(Point) Returns a value that indicates whether current Stroke intersects the specified point.
Public method HitTest(IEnumerable<Point>, Int32) Returns a value that indicates whether the current Stroke is within the specified bounds.
Public method HitTest(IEnumerable<Point>, StylusShape) Returns whether the specified path intersects the Stroke using the specified StylusShape.
Public method HitTest(Point, Double) Returns a value that indicates whether current Stroke intersects the specified area.
Public method HitTest(Rect, Int32) Returns a value that indicates whether the Stroke is within the bounds of the specified rectangle.
Top

You can use the HitTest methods to determine whether a Stroke intersects a certain point or is within specified bounds.

The following methods check whether the Stroke is intersected.

The following methods check whether the Stroke is surrounded.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft