Condividi tramite


Metodo InkAnalyzer.ClearStrokeData

Aggiornamento: novembre 2007

Cancella i dati della cache dall'oggetto InkAnalyzer per l'oggetto Stroke specificato.

Spazio dei nomi:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Sintassi

'Dichiarazione
Public Sub ClearStrokeData ( _
    strokeToClear As Stroke _
)
'Utilizzo
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
)

Parametri

  • strokeToClear
    Tipo: Microsoft.Ink.Stroke
    Tratto per il quale cancellare i dati relativi al tratto memorizzati nella cache.

Note

L'oggetto InkAnalyzer gestisce una cache per tutti i tratti associati all'oggetto InkAnalyzer. Le modifiche ai dati del tratto non vengono riflesse automaticamente nella cache. Quando le informazioni sul tratto vengono modificate, ad esempio quando si sposta un tratto, chiamare questo metodo per cancellare i dati del tratto obsoleti.

Esempi

In questo esempio viene aggiornata l'area modificata dell'oggetto InkAnalyzer, theInkAnalyzer e viene cancellata la cache dell'analizzatore per lo spostamento dell'insieme di tratti, 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);
}

Piattaforme

Windows Vista

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Framework

Supportato in: 3.0

Vedere anche

Riferimenti

InkAnalyzer Classe

Membri InkAnalyzer

Spazio dei nomi Microsoft.Ink

InkAnalyzerBase.UpdateStrokeData