Table of Contents

Class KeyModifierCollectionConverter

Namespace
H.Controls.ZoomBox
Assembly
H.Controls.ZoomBox.dll
public sealed class KeyModifierCollectionConverter : TypeConverter
Inheritance
KeyModifierCollectionConverter
Inherited Members
Extension Methods

Methods

CanConvertFrom(ITypeDescriptorContext, Type)

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

public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type type)

Parameters

typeDescriptorContext ITypeDescriptorContext
type Type

Returns

bool

true if this converter can perform the conversion; otherwise, false.

CanConvertTo(ITypeDescriptorContext, Type)

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

public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type type)

Parameters

typeDescriptorContext ITypeDescriptorContext
type Type

Returns

bool

true if this converter can perform the conversion; otherwise, false.

ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

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

public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value)

Parameters

typeDescriptorContext ITypeDescriptorContext
cultureInfo CultureInfo
value object

The object to convert.

Returns

object

An object that represents the converted value.

Exceptions

NotSupportedException

The conversion cannot be performed.

ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)

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

public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)

Parameters

typeDescriptorContext ITypeDescriptorContext
cultureInfo CultureInfo
value object

The object to convert.

destinationType Type

The Type to convert the value parameter to.

Returns

object

An object that represents the converted value.

Exceptions

ArgumentNullException

The destinationType parameter is null.

NotSupportedException

The conversion cannot be performed.