Stroke.HitTest Method

 

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

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

NameDescription
System_CAPS_pubmethodHitTest(IEnumerable<Point>, Int32)

Returns a value that indicates whether the current Stroke is within the specified bounds.

System_CAPS_pubmethodHitTest(IEnumerable<Point>, StylusShape)

Returns whether the specified path intersects the Stroke using the specified StylusShape.

System_CAPS_pubmethodHitTest(Point)

Returns a value that indicates whether current Stroke intersects the specified point.

System_CAPS_pubmethodHitTest(Point, Double)

Returns a value that indicates whether current Stroke intersects the specified area.

System_CAPS_pubmethodHitTest(Rect, Int32)

Returns a value that indicates whether the Stroke is within the bounds of the specified rectangle.

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.

Return to top
Show: