This documentation is archived and is not being maintained.

InkAnalyzerBase.RemoveStroke Method

Removes the specified stroke from the ink analyzer.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

public void RemoveStroke(
	int strokeId


Type: System.Int32

The stroke identifier.

This method removes the packet data for and references to the specified stroke from the InkAnalyzerBase.

This method removes the stroke from the leaf context node that references the stroke. If the context node no longer references any strokes, this method deletes the context node and any ancestor nodes that no longer have any child nodes.

After this method removes the stroke from the context node, it updates the ink analyzer's DirtyRegion to include the bounding box of the removed stroke.

If strokeId does not identify a stroke associated with the ink analyzer, this method returns without updating the ink analyzer.

The following example removes the specified stroke from the InkAnalyzerBase, theInkAnalyzerBase. In this example, theStrokeId is a 32-bit signed integer that identifies the stroke to remove.


Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0