Share via


InkCollector.SetGestureStatus Method

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

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public Sub SetGestureStatus ( _
    gesture As ApplicationGesture, _
    listening As Boolean _
)
'Usage
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 function SetGestureStatus(
    gesture : ApplicationGesture, 
    listening : boolean
)

Parameters

  • listening
    Type: 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.

Remarks

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.

Examples

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);

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkCollector Class

InkCollector Members

Microsoft.Ink Namespace

InkCollector.Gesture

InkCollector.GetGestureStatus

ApplicationGesture