Share via


InkAnalyzerBase.RemoveStrokes Method

Removes the specified strokes from the ink analyzer.

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

Syntax

'Declaration
Public Sub RemoveStrokes ( _
    strokeIds As Integer() _
)
'Usage
Dim instance As InkAnalyzerBase
Dim strokeIds As Integer()

instance.RemoveStrokes(strokeIds)
public void RemoveStrokes (
    int[] strokeIds
)
public:
void RemoveStrokes (
    array<int>^ strokeIds
)
public void RemoveStrokes (
    int[] strokeIds
)
public function RemoveStrokes (
    strokeIds : int[]
)
Not applicable.

Parameters

  • strokeIds
    An array containing the stroke identifiers of the strokes to remove.

Remarks

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

This method removes the strokes from the leaf context nodes that reference the strokes. If any ink leaf 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 strokes from the context nodes, it updates the ink analyzer's DirtyRegion to include the bounding box of the removed strokes.

If a stroke identified in strokeIds is not associated with the ink analyzer, this method ignores the identifier.

If none of the strokes identified in strokeIds identify a stroke associated with the ink analyzer, this method returns without updating the ink analyzer.

This method throws a System.ArgumentNullException when strokeIds is a null reference (Nothing in Visual Basic).

Example

The following example removes all strokes from the InkAnalyzerBase, theInkAnalyzerBase.

'Remove all strokes from the ink analyzer.
theInkAnalyzerBase.RemoveStrokes(theInkAnalyzerBase.RootNode.GetStrokeIds())
//Remove all strokes from the ink analyzer.
theInkAnalyzerBase.RemoveStrokes(
    theInkAnalyzerBase.RootNode.GetStrokeIds());

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzerBase Class
InkAnalyzerBase Members
System.Windows.Ink.AnalysisCore Namespace
System.Windows.Ink.AnalysisCore.InkAnalyzerBase.AddStroke
System.Windows.Ink.AnalysisCore.InkAnalyzerBase.AddStrokes
InkAnalyzerBase.RemoveStroke
InkAnalyzerBase.DirtyRegion