共用方式為


InkAnalyzer.ClearStrokeData 方法

清除 InkAnalyzer 中所指定 Stroke 的快取資料。

命名空間:  Microsoft.Ink
組件:  Microsoft.Ink.Analysis (在 Microsoft.Ink.Analysis.dll 中)

語法

'宣告
Public Sub ClearStrokeData ( _
    strokeToClear As Stroke _
)
'用途
Dim instance As InkAnalyzer
Dim strokeToClear As Stroke

instance.ClearStrokeData(strokeToClear)
public void ClearStrokeData(
    Stroke strokeToClear
)
public:
void ClearStrokeData(
    Stroke^ strokeToClear
)
public void ClearStrokeData(
    Stroke strokeToClear
)
public function ClearStrokeData(
    strokeToClear : Stroke
)

參數

備註

InkAnalyzer 會維護包含所有與 InkAnalyzer 相關聯之筆劃的快取。筆劃資料的變更不會自動反映在快取中。筆劃資訊變更 (例如當您移動筆劃) 時,請呼叫這個方法清除舊的筆劃資料。

範例

這個範例會更新 InkAnalyzer (theInkAnalyzer) 的廢棄區域,並且清除分析器的快取,以準備移動筆劃集合 selectedStrokes。

' Update the analyzer's dirty region to include the original
' bounding box of the strokes that are moving.
Me.theInkAnalyzer.DirtyRegion.Union(Me.selectedStrokes.GetBoundingBox())

' Clear the analyzer's cache for each stroke that is moving.
Dim theStroke As Microsoft.Ink.Stroke
For Each theStroke In Me.selectedStrokes
    Me.theInkAnalyzer.ClearStrokeData(theStroke)
Next theStroke
// Update the analyzer's dirty region to include the original
// bounding box of the strokes that are moving.
this.theInkAnalyzer.DirtyRegion.Union(
    this.selectedStrokes.GetBoundingBox());

// Clear the analyzer's cache for each stroke that is moving.
foreach (Microsoft.Ink.Stroke theStroke in this.selectedStrokes)
{
    this.theInkAnalyzer.ClearStrokeData(theStroke);
}

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

InkAnalyzer 類別

InkAnalyzer 成員

Microsoft.Ink 命名空間

InkAnalyzerBase.UpdateStrokeData