Class TouchHelper
A helper class that provides various options to enable or disable the touch gestures for the control.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.Core.Utils
Assembly: Syncfusion.Core.WinForms.dll
Syntax
public static class TouchHelper
Methods
DisableGestures(Control)
Disables the all touch gestures for the control.
Declaration
public static bool DisableGestures(Control control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control | The control which need to disable the gesture. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true when properly disabled all gestures, otherwise returns false. |
DisableGestures(Control, GestureOptions)
Disables the gestures for control based on the GestureOptions information.
Declaration
public static bool DisableGestures(Control control, GestureOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control | The control which need to disable the gesture. |
GestureOptions | options | The gesture options. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true when properly disabled the gestures mentioned in gesture options, otherwise returns false. |
DisableGestures(Control, GestureOptions, PanningOptions)
Disables the gestures for control based on the GestureOptions and PanningOptions information.
Declaration
public static bool DisableGestures(Control control, GestureOptions options, PanningOptions panOptions)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control | The control which need to disable the gesture. |
GestureOptions | options | The touch options. |
PanningOptions | panOptions | The panning options. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true when properly disabled the gestures mentioned in touch options, otherwise returns false. |
EnableGestures(Control)
Enables all the gestures for the given control.
Declaration
public static bool EnableGestures(Control control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control | The control which need to enable the gesture. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true when properly enabled the all gestures, otherwise returns false. |
EnableGestures(Control, GestureOptions)
Enables the gestures for control based on the GestureOptions information.
Declaration
public static bool EnableGestures(Control control, GestureOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control | The control which need to enable the gesture. |
GestureOptions | options | The gesture options. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true when properly enabled the gestures mentioned in gesture options, otherwise returns false. |
EnableGestures(Control, GestureOptions, PanningOptions)
Enables the gestures for control based on the GestureOptions and PanningOptions information.
Declaration
public static bool EnableGestures(Control control, GestureOptions gestureOptions, PanningOptions panOptions)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control | The control which need to enable the gesture. |
GestureOptions | gestureOptions | The gesture options. |
PanningOptions | panOptions | The panning options. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true when properly enabled the gestures mentioned in gesture options, otherwise returns false. |
GetTouchPosition(Message, Control)
Gets the touch position of control when WM_GESTURENOTIFY message raises.
Declaration
public static Point GetTouchPosition(Message message, Control control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | message | The touch message. |
System.Windows.Forms.Control | control | The Control. |
Returns
Type | Description |
---|---|
System.Drawing.Point | Returns the touch position. |