Поделиться через


InkPicture.SetGestureStatus - метод

Обновлен: Ноябрь 2007

Sets whether or not the InkPicture object has interest in a known application gesture.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Sub SetGestureStatus ( _
    gesture As ApplicationGesture, _
    listening As Boolean _
)
'Применение
Dim instance As InkPicture
Dim gesture As ApplicationGesture
Dim listening As Boolean

instance.SetGestureStatus(gesture, listening)
public void SetGestureStatus(
    ApplicationGesture gesture,
    bool listening
)
public:
void SetGestureStatus(
    ApplicationGesture gesture, 
    bool listening
)
public void SetGestureStatus(
    ApplicationGesture gesture,
    boolean listening
)
public function SetGestureStatus(
    gesture : ApplicationGesture, 
    listening : boolean
)

Параметры

  • listening
    Тип: System.Boolean
    Whether or not the InkPicture object has interest in a known application gesture.
    true if the InkPicture object has interest in the application gesture.
    false if the InkPicture object does not have interest in the application gesture.

Заметки

To enable or disable all application gestures in one call, use the AllGestures value of the ApplicationGesture enumeration.

To return a value that indicates whether the InkPicture object has interest in a particular application gesture, call the GetGestureStatus method.

Примеры

In this example, the InkPicture object, mInkPicture expresses an interest in four gestures of the ApplicationGesture enumeration.

' set InkPicture interest in the Left, Right, Up, Down gestures
mInkPicture.SetGestureStatus(ApplicationGesture.Left, True)
mInkPicture.SetGestureStatus(ApplicationGesture.Right, True)
mInkPicture.SetGestureStatus(ApplicationGesture.Up, True)
mInkPicture.SetGestureStatus(ApplicationGesture.Down, True)
// set InkPicture interest in the Left, Right, Up, Down gestures
mInkPicture.SetGestureStatus(ApplicationGesture.Left, true);
mInkPicture.SetGestureStatus(ApplicationGesture.Right, true);
mInkPicture.SetGestureStatus(ApplicationGesture.Up, true);
mInkPicture.SetGestureStatus(ApplicationGesture.Down, true);

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

InkPicture Класс

InkPicture - члены

Microsoft.Ink - пространство имен

InkPicture.Gesture

InkPicture.GetGestureStatus

ApplicationGesture