Share via


InkOverlay.SetGestureStatus Method

Sets whether or not the InkOverlay 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 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 function SetGestureStatus(
    gesture : ApplicationGesture, 
    listening : boolean
)

Parameters

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

Remarks

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.

Examples

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

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

InkOverlay Class

InkOverlay Members

Microsoft.Ink Namespace

InkOverlay.Gesture

InkOverlay.GetGestureStatus

ApplicationGesture