다음을 통해 공유


GestureRecognizer.Reset 메서드

업데이트: 2007년 11월

GestureRecognizer 개체에서 이전 스트로크 정보를 지웁니다.

네임스페이스:  Microsoft.StylusInput
어셈블리:  Microsoft.Ink(Microsoft.Ink.dll)

구문

‘선언
Public Sub Reset
‘사용 방법
Dim instance As GestureRecognizer

instance.Reset()
public void Reset()
public:
void Reset()
public void Reset()
public function Reset()

예제

이 C# 예제는 메뉴 항목의 Click 이벤트 처리기에서 가져온 코드 조각입니다. 사용자가 MenuItem 개체인 theMenuItemMultistroke를 선택하면 GestureRecognizer 개체인 theGestureRecognizer에서 다중 스트로크 제스처를 인식합니다. 사용자가 theMenuItemMultistroke의 선택을 취소하면 theGestureRecognizer에서 단일 스트로크 제스처를 인식합니다. Reset 메서드는 theGestureRecognizer에서 이전 스트로크 정보를 지웁니다.

using Microsoft.Ink;
using Microsoft.StylusInput;
using Microsoft.StylusInput.PluginData;

// ...

// Declare the RealTimeStylus objects, the GestureRecognizer plugin,
// and the DynamicRenderer plug-in.
private Microsoft.StylusInput.RealTimeStylus thePrimaryRealTimeStylus = null;
private Microsoft.StylusInput.RealTimeStylus theSecondaryRealTimeStylus = null;
private Microsoft.StylusInput.GestureRecognizer theGestureRecognizer = null;
private Microsoft.StylusInput.DynamicRenderer theDynamicRenderer = null;

// ...

// The Multistroke menu item's Click event handler.
private void theMenuItemMultistroke_Click(object sender, System.EventArgs e)
{
    // Update the Multistroke menu item's checked state.
    this.theMenuItemMultistroke.Checked = !this.theMenuItemMultistroke.Checked;

    // Update the maximum stroke count for and reset gesture recognition. 
    this.theGestureRecognizer.MaxStrokeCount =
        (this.theMenuItemMultistroke.Checked) ? 2 : 1;
    this.theGestureRecognizer.Reset();
}

플랫폼

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

GestureRecognizer 클래스

GestureRecognizer 멤버

Microsoft.StylusInput 네임스페이스