Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StrokeCollection::GetIncrementalLassoHitTester Method (Int32)

 

Creates an IncrementalLassoHitTester that hit tests the StrokeCollection with a lasso (freehand) path.

Namespace:   System.Windows.Ink
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.

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft