다음을 통해 공유


InkPicture.SystemGesture 이벤트

업데이트: 2007년 11월

시스템 제스처가 인식될 때 발생합니다.

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

구문

‘선언
Public Event SystemGesture As InkCollectorSystemGestureEventHandler
‘사용 방법
Dim instance As InkPicture
Dim handler As InkCollectorSystemGestureEventHandler

AddHandler instance.SystemGesture, handler
public event InkCollectorSystemGestureEventHandler SystemGesture
public:
 event InkCollectorSystemGestureEventHandler^ SystemGesture {
    void add (InkCollectorSystemGestureEventHandler^ value);
    void remove (InkCollectorSystemGestureEventHandler^ value);
}
/** @event */
public void add_SystemGesture (InkCollectorSystemGestureEventHandler value)
/** @event */
public void remove_SystemGesture (InkCollectorSystemGestureEventHandler value)
JScript에서는 이벤트를 지원하지 않습니다.

설명

시스템 제스처는 제스처를 만드는 데 사용되는 Cursor 개체에 대한 정보를 제공합니다. 또한 마우스 이벤트를 결합하고 감지하는 간편하고 효율적인 방법을 제공합니다.

예를 들어 MouseUpMouseDown이벤트 쌍(두 이벤트 사이에 다른 마우스 이벤트는 발생하지 않음)을 수신 대기하는 대신 Tap 또는 RightTap 시스템 제스처를 수신 대기할 수 있습니다.

또한 모든 마우스 위치의 (X, Y) 좌표가 필요하지 않으면 MouseDownMouseMove 이벤트를 수신 대기하여 여러 개의 MouseMove메시지를 받는 대신 Drag 또는 RightDrag 시스템 제스처를 수신 대기할 수 있습니다. 그러면 많은 MouseMove메시지가 아닌 하나의 메시지만 받게 됩니다.

구체적인 시스템 제스처의 목록은 SystemGesture 열거형 형식을 참조하십시오. 시스템 제스처에 대한 자세한 내용은 Using GesturesCommand Input on the Tablet PC을를 참조하십시오.

이벤트 처리기는 이 이벤트에 대한 데이터가 들어 있는 InkCollectorSystemGestureEventArgs 형식의 인수를 받습니다.

InkCollectorSystemGestureEventHandler 대리자를 만들 때는 이벤트를 처리할 메서드를 식별합니다. 이벤트를 이벤트 처리기와 연결하려면 대리자의 인스턴스를 해당 이벤트에 추가합니다. 대리자를 제거하지 않는 경우 이벤트가 발생할 때마다 이벤트 처리기가 호출됩니다.

예제

이 예제의 이벤트 처리기는 시스템 제스처 정보를 상태 표시줄 레이블인 statusLabelSysGesture에 표시합니다.

Private Sub Event_OnSystemGesture(ByVal sender As Object, ByVal e As InkCollectorSystemGestureEventArgs)
    Select Case e.Id
        Case SystemGesture.Tap
            Me.statusLabelSysGesture.Text = "Tap"
        Case SystemGesture.DoubleTap
            Me.statusLabelSysGesture.Text = "Double Tap"

    End Select
End Sub
private void Event_OnSystemGesture(object sender, InkCollectorSystemGestureEventArgs e)
{
    switch (e.Id)
    {
        case SystemGesture.Tap:
            this.statusLabelSysGesture.Text = "Tap";
            break;
        case SystemGesture.DoubleTap:
            this.statusLabelSysGesture.Text = "Double Tap";
            break;
    }

}

시스템 제스처를 수집하기 전에 InkPicture 개체인 mInkPicture는 이벤트 처리기를 등록합니다.

' register the SystemGesture event handler
AddHandler mInkPicture.SystemGesture, New InkCollectorSystemGestureEventHandler(AddressOf Event_OnSystemGesture)
// register the SystemGesture event handler
mInkPicture.SystemGesture += new InkCollectorSystemGestureEventHandler(Event_OnSystemGesture);

플랫폼

Windows Vista

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

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

InkPicture 클래스

InkPicture 멤버

Microsoft.Ink 네임스페이스

Cursor

InkCollectorSystemGestureEventArgs

SystemGesture

기타 리소스

Using Gestures