InkAnalyzer.RemoveStrokes Method
Removes a strokes collection from the InkAnalyzer.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public Sub RemoveStrokes ( _
strokesToRemove As StrokeCollection _
)
'Usage
Dim instance As InkAnalyzer
Dim strokesToRemove As StrokeCollection
instance.RemoveStrokes(strokesToRemove)
public void RemoveStrokes(
StrokeCollection strokesToRemove
)
public:
void RemoveStrokes(
StrokeCollection^ strokesToRemove
)
public function RemoveStrokes(
strokesToRemove : StrokeCollection
)
Parameters
strokesToRemove
Type: System.Windows.Ink.StrokeCollectionThe strokes collection to remove.
Remarks
This method removes strokesToRemove from the InkAnalyzer.
This method removes each stroke in strokesToRemove from the leaf context node that references the strokes. If the context node no longer references any strokes, this method deletes the context node and any ancestor nodes that no longer have child nodes.
After this method removes the strokes from the context node, it updates the DirtyRegion to include the bounding box of the removed strokes.
This method ignores strokes that are not associated with the ink analyzer. If none of the strokes in strokesToRemove are associated with the ink analyzer, this method returns without updating the ink analyzer.
This method throws a ArgumentNullException when strokesToRemove is nulla null reference (Nothing in Visual Basic).
Examples
The following example defines the Strokes_StrokesChanged event handler, which adds the strokes to theInkAnalyzer if they were already added to theInkCanvas. It also removes strokes from theInkAnalyzer, if they were already removed from theInkCanvas.
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
InkAnalyzerRemoveStroke