다음을 통해 공유


GestureRecognizer.SetEnabledGestures 메서드

정의

GestureRecognizer에서 인식하는 애플리케이션 제스처를 설정합니다.

public:
 void SetEnabledGestures(System::Collections::Generic::IEnumerable<System::Windows::Ink::ApplicationGesture> ^ applicationGestures);
public void SetEnabledGestures (System.Collections.Generic.IEnumerable<System.Windows.Ink.ApplicationGesture> applicationGestures);
member this.SetEnabledGestures : seq<System.Windows.Ink.ApplicationGesture> -> unit
Public Sub SetEnabledGestures (applicationGestures As IEnumerable(Of ApplicationGesture))

매개 변수

applicationGestures
IEnumerable<ApplicationGesture>

ApplicationGesture에서 인식할 애플리케이션 제스처를 지정하는 GestureRecognizer 형식의 배열입니다.

예제

다음 예제에서는 , RightScratchOut 제스처만 Down인식 하는 만드는 방법을 GestureRecognizer 보여 줍니다.

ApplicationGesture[] gestures = {ApplicationGesture.Down,
    ApplicationGesture.Right, ApplicationGesture.ScratchOut};

GestureRecognizer recognizer = new GestureRecognizer();

recognizer.SetEnabledGestures(gestures);
' Declare and initialize an array of application gestures.
Dim gestures As ApplicationGesture() = _
    {ApplicationGesture.Down, _
     ApplicationGesture.Right, _
     ApplicationGesture.Scratchout}

Dim recognizer As New GestureRecognizer()

recognizer.SetEnabledGestures(gestures)

적용 대상