Table of Contents

Class ModifierKeysConverter

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Converter class for converting between a string and the ModifierKeys.

public class ModifierKeysConverter : BaseTypeConverter
Inheritance
ModifierKeysConverter

Fields

Default

Gets or sets default ModifierKeysConverter implementation.

DisplayTextModifierDelimiter

Represents the delimiter character used to separate modifiers in display text.

ModifierDelimiter

Represents the delimiter character used to separate modifiers in a string.

Properties

ModifierDisplayTextAlt

Gets or sets the alternative display text for the "Alt" modifier key.

ModifierDisplayTextControl

Gets or sets the display text used to represent the control key modifier.

ModifierDisplayTextShift

Gets or sets the display text used to represent the "Shift" modifier key.

ModifierDisplayTextWindows

Gets or sets the display text for the Windows key modifier.

Methods

CanConvertTo(ITypeDescriptorContext?, Type?)

Returns whether this converter can convert the object to the specified type, using the specified context.

ConvertFrom(ITypeDescriptorContext?, CultureInfo?, object)

Converts the given object to the type of this converter, using the specified context and culture information.

ConvertTo(ITypeDescriptorContext?, CultureInfo?, object?, Type)

Converts the given value object to the specified type, using the specified context and culture information.

FromString(string)

Parses string representation of the key modifiers.

IsDefinedModifierKeys(ModifierKeys)

Check for valid enum, as any int can be casted to the enum.

ToString(ModifierKeys, bool)

Converts ModifierKeys to string.