InkAnalyzer.RemoveStrokes 메서드
업데이트: 2007년 11월
잉크 분석기에서 스트로크 컬렉션을 제거합니다.
네임스페이스: Microsoft.Ink
어셈블리: Microsoft.Ink.Analysis(Microsoft.Ink.Analysis.dll)
구문
‘선언
Public Sub RemoveStrokes ( _
strokesToRemove As Strokes _
)
‘사용 방법
Dim instance As InkAnalyzer
Dim strokesToRemove As Strokes
instance.RemoveStrokes(strokesToRemove)
public void RemoveStrokes(
Strokes strokesToRemove
)
public:
void RemoveStrokes(
Strokes^ strokesToRemove
)
public void RemoveStrokes(
Strokes strokesToRemove
)
public function RemoveStrokes(
strokesToRemove : Strokes
)
매개 변수
- strokesToRemove
형식: Microsoft.Ink.Strokes
제거할 스트로크 컬렉션입니다.
설명
이 메서드는 InkAnalyzer에서 strokesToRemove를 제거합니다.
이 메서드는 스트로크를 참조하는 리프 컨텍스트 노드에서 strokesToRemove의 각 스트로크를 제거합니다. 컨텍스트 노드가 더 이상 스트로크를 참조하지 않으면 이 메서드에서 해당 컨텍스트 노드를 삭제하고 더 이상 자식 노드가 없는 모든 상위 노드를 삭제합니다.
이 메서드는 컨텍스트 노드에서 스트로크를 제거한 후 DirtyRegion을 업데이트하여 제거된 스트로크의 경계 상자를 포함합니다.
잉크 분석기에 연결되지 않은 스트로크는 모두 무시됩니다. strokesToRemove에 잉크 분석기와 연결된 스트로크가 없으면 이 메서드는 잉크 분석기를 업데이트하지 않고 반환됩니다.
strokesToRemove가 nullNull 참조(Visual Basic의 경우 Nothing)이면 이 메서드는 System.ArgumentNullException을 throw합니다.
예제
이 예제에서는 InkAnalyzer인 theInkAnalyzer에 연결된 모든 스트로크를 잉크 분석기에서 제거하고 theInkAnalyzer에 연결된 Microsoft.Ink.Ink 개체에서도 제거합니다.
' Get all the strokes associated with the ink analyzer.
Dim theStrokes As Microsoft.Ink.Strokes = Me.theInkAnalyzer.RootNode.Strokes
If Nothing IsNot theStrokes Then
' Remove the strokes from the analyzer.
Me.theInkAnalyzer.RemoveStrokes(theStrokes)
' Deleted the strokes from the associated Ink object.
Me.theInkAnalyzer.Ink.DeleteStrokes(theStrokes)
End If
// Get all the strokes associated with the ink analyzer.
Microsoft.Ink.Strokes theStrokes = this.theInkAnalyzer.RootNode.Strokes;
if (null != theStrokes)
{
// Remove the strokes from the analyzer.
this.theInkAnalyzer.RemoveStrokes(theStrokes);
// Deleted the strokes from the associated Ink object.
this.theInkAnalyzer.Ink.DeleteStrokes(theStrokes);
}
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원