Share via


InkAnalyzerBase.RemoveStroke Method

Removes the specified stroke from the ink analyzer.

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

Syntax

'Declaration
Public Sub RemoveStroke ( _
    strokeId As Integer _
)
'Usage
Dim instance As InkAnalyzerBase
Dim strokeId As Integer

instance.RemoveStroke(strokeId)
public void RemoveStroke (
    int strokeId
)
public:
void RemoveStroke (
    int strokeId
)
public void RemoveStroke (
    int strokeId
)
public function RemoveStroke (
    strokeId : int
)
Not applicable.

Parameters

  • strokeId
    The stroke identifier.

Remarks

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.

Example

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.

theInkAnalyzerBase.RemoveStroke(theStrokeId)
theInkAnalyzerBase.RemoveStroke(theStrokeId);

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.RemoveStrokes
InkAnalyzerBase.DirtyRegion