Sdílet prostřednictvím


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 function RemoveStrokes(
    strokeIds : int[]
)

Parameters

  • strokeIds
    Type: array<System.Int32[]

    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 nulla null reference (Nothing in Visual Basic).

Examples

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 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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzerBase Class

InkAnalyzerBase Members

System.Windows.Ink.AnalysisCore Namespace

InkAnalyzerBase.AddStroke

InkAnalyzerBase.AddStrokes

InkAnalyzerBase.RemoveStroke

InkAnalyzerBase.DirtyRegion