Поделиться через


InkAnalyzer.ClearStrokeData - метод

Обновлен: Ноябрь 2007

Clears the cached data from the InkAnalyzer for the specified 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
)

Параметры

Заметки

The InkAnalyzer maintains a cache for all of the strokes associated with the InkAnalyzer. Changes to stroke data are not automatically reflected in the cache. When stroke information changes, such as when you move a stroke, call this method to clear the old stroke data.

Примеры

This example updates the dirty region of the InkAnalyzer, theInkAnalyzer, and clears the analyzer's cache in preparation for moving the strokes collection, 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