업데이트: 2007년 11월
지정된 Stroke에 대해 InkAnalyzer에서 캐시된 데이터를 지웁니다.
네임스페이스: System.Windows.Ink
어셈블리: IAWinFX(IAWinFX.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
형식: System.Windows.Ink.Stroke
지울 캐시된 스트로크입니다.
설명
InkAnalyzer는 InkAnalyzer와 연결된 모든 스트로크의 캐시를 유지 관리합니다. 스트로크 데이터에 대한 변경 내용은 자동으로 캐시에 반영되지 않습니다. 스트로크 정보가 변경되면(예를 들어 스트로크를 이동하면) 이 메서드를 호출하여 이전 스트로크 데이터를 지웁니다.
예제
이 예제에서는 InkAnalyzer의 변경 영역인 theInkAnalyzer를 업데이트하고 selectedStrokes라는 StrokeCollection 이동을 준비하면서 분석기의 캐시를 지웁니다.
' Update the analyzer's dirty region to include the original
' bounding box of the strokes that are moving.
Me.theInkAnalyzer.DirtyRegion.Union(selectedStrokes.GetBounds())
' Clear the analyzer's cache for each stroke that is moving.
Dim theStroke As Stroke
For Each theStroke In 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(selectedStrokes.GetBounds());
// Clear the analyzer's cache for each stroke that is moving.
foreach (Stroke theStroke in selectedStrokes)
{
this.theInkAnalyzer.ClearStrokeData(theStroke);
}
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원
참고 항목
참조
InkAnalyzerBaseUpdateStrokeData(Int32, array<Int32[], array<Guid[])