InkCollector.SetGestureStatus - метод
Обновлен: Ноябрь 2007
Sets whether or not the InkCollector 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 InkCollector
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 InkCollector object has interest in a known application gesture.
true if the InkCollector object has interest in the application gesture.
false if the InkCollector object does not have interest in the application gesture.
Заметки
To enable or disable all application gestures in one call, use the ApplicationGesture value of the ApplicationGesture enumeration.
To return a value that indicates whether the InkCollector object has interest in a particular application gesture, call the GetGestureStatus method.
Примеры
In this example, the InkCollector object, mInkCollector expresses an interest in four gestures of the ApplicationGesture enumeration.
' set InkCollector interest in the Left, Right, Up, Down gestures
mInkCollector.SetGestureStatus(ApplicationGesture.Left, True)
mInkCollector.SetGestureStatus(ApplicationGesture.Right, True)
mInkCollector.SetGestureStatus(ApplicationGesture.Up, True)
mInkCollector.SetGestureStatus(ApplicationGesture.Down, True)
// set InkCollector interest in the Left, Right, Up, Down gestures
mInkCollector.SetGestureStatus(ApplicationGesture.Left, true);
mInkCollector.SetGestureStatus(ApplicationGesture.Right, true);
mInkCollector.SetGestureStatus(ApplicationGesture.Up, true);
mInkCollector.SetGestureStatus(ApplicationGesture.Down, true);
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0