指定された Stroke の InkAnalyzer からキャッシュされたデータをクリアします。
名前空間 : 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
)
パラメータ
- strokeToClear
型 : Microsoft.Ink.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