ModifierKeysConverter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a ModifierKeys object to and from other types.
public ref class ModifierKeysConverter : System::ComponentModel::TypeConverter
public class ModifierKeysConverter : System.ComponentModel.TypeConverter
type ModifierKeysConverter = class
inherit TypeConverter
Public Class ModifierKeysConverter
Inherits TypeConverter
- Inheritance
Remarks
The ModifierKeysConverter converts to and from a String using the "+" character as the delimiter. For example, the string Control+ALT would be converted into a ModifierKeys object consisting of the Control and Alt keys. This behavior differs from the default XAML parser-level enumeration combine character of ",".
Constructors
| Name | Description |
|---|---|
| ModifierKeysConverter() |
Initializes a new instance of the ModifierKeysConverter class. |
Methods
| Name | Description |
|---|---|
| CanConvertFrom(ITypeDescriptorContext, Type) |
Determines whether an object of the specified type can be converted to an instance of ModifierKeys, using the specified context. |
| CanConvertTo(ITypeDescriptorContext, Type) |
Determines whether an instance of ModifierKeys can be converted to the specified type, using the specified context. |
| ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) |
Attempts to convert the specified object to a ModifierKeys, using the specified context. |
| ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) |
Attempts to convert a ModifierKeys to the specified type, using the specified context. |
| IsDefinedModifierKeys(ModifierKeys) |
Determines whether the specified value is a valid ModifierKeys value. |