Class KeyGestureConverter
Converter class for converting between a string and the KeyGesture.
public class KeyGestureConverter : BaseTypeConverter
- Inheritance
-
KeyGestureConverter
Fields
- Default
Gets or sets default type converter for KeyGesture.
- DisplayStringSeparator
Gets separator character between display string and the key.
- ModifiersDelimiter
Gets delimiter character between key and modifiers.
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.