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 function RemoveStroke(
strokeId : int
)
Parameters
strokeId
Type: System.Int32The 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.
Examples
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 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