Uredi

MouseGestureConverter Class

Definition

Converts a MouseGesture object to and from other types.

public ref class MouseGestureConverter : System::ComponentModel::TypeConverter
public class MouseGestureConverter : System.ComponentModel.TypeConverter
type MouseGestureConverter = class
    inherit TypeConverter
Public Class MouseGestureConverter
Inherits TypeConverter
Inheritance
MouseGestureConverter

Remarks

The MouseGestureConverter class only converts an instance of MouseGesture to and from a String.

The MouseGestureConverter converts to and from a String using the "+" character as the delimiter between the modifier keys and the mouse action. For example, the string Control+RightClick would be converted into a MouseGesture with a Modifiers property equal to Control and MouseAction property equal to RightClick.

Constructors

Name Description
MouseGestureConverter()

Initializes a new instance of the MouseGestureConverter class.

Methods

Name Description
CanConvertFrom(ITypeDescriptorContext, Type)

Determines whether an object of the specified type can be converted to an instance of MouseGesture, using the specified context.

CanConvertTo(ITypeDescriptorContext, Type)

Determines whether an instance of MouseGesture can be converted to the specified type, using the specified context.

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Attempts to convert the specified object to a MouseGesture, using the specified context.

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Attempts to convert a MouseGesture to the specified type, using the specified context.

Applies to