共用方式為


InkAnalyzerBase.ClearStrokeData 方法

清除筆墨分析器中的筆劃封包資料。

命名空間:  System.Windows.Ink.AnalysisCore
組件:  IACore (在 IACore.dll 中)

語法

'宣告
Public Sub ClearStrokeData ( _
    strokeId As Integer _
)
'用途
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
)

參數

  • strokeId
    型別:System.Int32
    要清除其封包資料之筆劃的識別項。

備註

在筆劃的封包資料變更時 (例如筆劃移動或轉換時),請使用這個方法。當筆墨分析器所需之筆劃的封包資料已清除時,會引發 UpdateStrokesCacheBase 事件。

範例

下列範例會清除所選取筆劃之 theInkAnalyzerBase 物件的筆劃快取。theInkAnalyzerBase 會宣告為 InkAnalyzerBase 物件。selectedStrokeIds 會宣告為 32 位元帶正負號的整數 (Signed Integer) 陣列,並且包含所選取筆劃的識別項。

' 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);
}

平台

Windows Vista, Windows XP SP2, Windows Server 2003

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

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

InkAnalyzerBase 類別

InkAnalyzerBase 成員

System.Windows.Ink.AnalysisCore 命名空間