Class KeyGestureConverter
Converter class for converting between a string and the KeyGesture.
public class KeyGestureConverter : TypeConverter
- Inheritance
-
KeyGestureConverter
Methods
- CanConvertFrom(ITypeDescriptorContext?, Type?)
Gets a value indicating whether this converter can convert an object in the given source type to the native type of the converter using the context.
- CanConvertTo(ITypeDescriptorContext?, Type?)
Gets a value indicating whether this converter can convert an object to the given destination type using the context.
- ConvertTo(ITypeDescriptorContext?, CultureInfo?, object?, Type?)
Converts the given object to the converter's native type.
- FromString(string)
Parses string representation of the key with modifiers to the KeyGesture instance.
- IsDefinedKey(Key)
Check for Valid enum, as any int can be casted to the enum.