Share via


InkAnalyzerBase.ClearStrokeData Method

Clears stroke packet data from the ink analyzer.

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

Syntax

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

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

Parameters

  • strokeId
    The identifier of the stroke for which the packet data is cleared.

Remarks

Use this method when packet data for a stroke changes, such as when a stroke is moved or otherwise transformed. The ink analyzer raises the UpdateStrokesCacheBase event when it needs stroke packet data from a stroke for which the packet data has been cleared.

Example

The following example clears theInkAnalyzerBase object's stroke cache for selected strokes. theInkAnalyzerBase is declared as an InkAnalyzerBase object. selectedStrokeIds is declared as a 32-bit signed integer array and contains the identifiers for the selected strokes.

' Clear the analyzer's cache for each stroke in the
' selectedStrokeIds array.
Dim theStrokeId As Integer
For Each theStrokeId In selectedStrokeIds
    theInkAnalyzerBase.ClearStrokeData(theStrokeId)
Next theStrokeId
// Clear the analyzer's cache for each stroke in the
// selectedStrokeIds array.
foreach (int theStrokeId in selectedStrokeIds)
{
    theInkAnalyzerBase.ClearStrokeData(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