InkPicture.SetGestureStatus Method
Sets whether or not the InkPicture 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 InkPicture
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
gesture
Type: Microsoft.Ink.ApplicationGestureA member of the ApplicationGesture enumeration, which indicates the gesture to set the status of.
listening
Type: System.BooleanWhether or not the InkPicture object has interest in a known application gesture.
true if the InkPicture object has interest in the application gesture.
false if the InkPicture 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 InkPicture object has interest in a particular application gesture, call the GetGestureStatus method.
Examples
In this example, the InkPicture object, mInkPicture expresses an interest in four gestures of the ApplicationGesture enumeration.
' set InkPicture interest in the Left, Right, Up, Down gestures
mInkPicture.SetGestureStatus(ApplicationGesture.Left, True)
mInkPicture.SetGestureStatus(ApplicationGesture.Right, True)
mInkPicture.SetGestureStatus(ApplicationGesture.Up, True)
mInkPicture.SetGestureStatus(ApplicationGesture.Down, True)
// set InkPicture interest in the Left, Right, Up, Down gestures
mInkPicture.SetGestureStatus(ApplicationGesture.Left, true);
mInkPicture.SetGestureStatus(ApplicationGesture.Right, true);
mInkPicture.SetGestureStatus(ApplicationGesture.Up, true);
mInkPicture.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