Sdílet prostřednictvím


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 function ClearStrokeData(
    strokeId : int
)

Parameters

  • strokeId
    Type: System.Int32

    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.

Examples

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