InkOverlay.SetGestureStatus - метод
Обновлен: Ноябрь 2007
Sets whether or not the InkOverlay 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 InkOverlay
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
)
Параметры
- gesture
Тип: Microsoft.Ink.ApplicationGesture
A member of the ApplicationGesture enumeration, which indicates the gesture to set the status of.
- listening
Тип: System.Boolean
Whether or not the InkOverlay object has interest in a known application gesture.
true if the InkOverlay object has interest in the application gesture.
false if the InkOverlay 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 InkOverlay object has interest in a particular application gesture, call the GetGestureStatus method.
Примеры
In this example, the InkOverlay object, mInkOverlay expresses an interest in four gestures of the ApplicationGesture enumeration.
' set InkOverlay interest in the Left, Right, Up, Down gestures
mInkOverlay.SetGestureStatus(ApplicationGesture.Left, True)
mInkOverlay.SetGestureStatus(ApplicationGesture.Right, True)
mInkOverlay.SetGestureStatus(ApplicationGesture.Up, True)
mInkOverlay.SetGestureStatus(ApplicationGesture.Down, True)
// set InkOverlay interest in the Left, Right, Up, Down gestures
mInkOverlay.SetGestureStatus(ApplicationGesture.Left, true);
mInkOverlay.SetGestureStatus(ApplicationGesture.Right, true);
mInkOverlay.SetGestureStatus(ApplicationGesture.Up, true);
mInkOverlay.SetGestureStatus(ApplicationGesture.Down, true);
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0