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


InkEdit.SetGestureStatus - метод

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

Sets whether or not the InkEdit control 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 InkEdit
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 InkEdit control has interest in a known application gesture.
    true if InkEdit control has interest in the application gesture; otherwise, false.

Заметки

The AllGestures value is not supported by the InkEdit control and returns an error; however, passing invalid gesture identifiers does not return an error.

This method should only be called if the InkEdit.Status property returns the InkEditStatus enumeration value, Idle.

Примеры

This C# example sets the interest status of each ApplicationGesture to false on the passed-in InkEdit control, theInkEdit.

using Microsoft.Ink;
// . . .
// Set all of the ApplicationGestures' status
// to false on the InkEdit control.
private void ClearAppGestures(InkEdit theInkEdit)
{
    ApplicationGesture test = ApplicationGesture.NoGesture;
    Array theGestures = System.Enum.GetValues(test.GetType());
    foreach (ApplicationGesture theGesture in theGestures)
    {
        theInkEdit.SetGestureStatus(theGesture, false);
    }
}

This Microsoft® Visual Basic® .NET example sets the interest status of each ApplicationGesture to false on the passed-in InkEdit control, theInkEdit.

Imports Microsoft.Ink
' . . .
' Set all of the ApplicationGestures' status
' to false on the InkEdit object.
Private Sub ClearAppGestures(ByVal theInkEdit As InkEdit)
    Dim test As ApplicationGesture = ApplicationGesture.NoGesture
    Dim theGestures As Array = System.Enum.GetValues(test.GetType())
    Dim theGesture As ApplicationGesture
    For Each theGesture In theGestures
        theInkEdit.SetGestureStatus(theGesture, False)
    Next
End Sub

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

InkEdit Класс

InkEdit - члены

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

InkEdit.GetGestureStatus