Table of Contents

Class KeyConverter

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

TypeConverter descendant for converting between a string and Key.

public class KeyConverter : BaseTypeConverter
Inheritance
KeyConverter

Fields

Default

Gets or sets default KeyConverter implementation.

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)

Converts string representation of the key to the Key enumeration.