StrokeCollection::GetIncrementalLassoHitTester Method (Int32)
Creates an IncrementalLassoHitTester that hit tests the StrokeCollection with a lasso (freehand) path.
Assembly: PresentationCore (in PresentationCore.dll)
public: IncrementalLassoHitTester^ GetIncrementalLassoHitTester( int percentageWithinLasso )
Parameters
- percentageWithinLasso
-
Type:
System::Int32
The minimum percentage of each Stroke that must be contained within the lasso for it to be considered hit.
Return Value
Type: System.Windows.Ink::IncrementalLassoHitTester^An IncrementalLassoHitTester that hit tests the StrokeCollection.
The GetIncrementalLassoHitTester method returns an IncrementalLassoHitTester that considers a Stroke to be "hit" when the lasso path surrounds it. This is useful for implementing features, such as the ability to select a stroke with a lasso tool. The InkCanvas uses an IncrementalLassoHitTester to implement the lasso selection tool.
The following example demonstrates how to get an IncrementalLassoHitTester that enables a user to select strokes with a lasso tool. To create a control that enables a user to select ink, see How to: Select Ink from a Custom Control.
Available since 3.0