Class KeyModifierCollectionConverter
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
ITypeDescriptorContexttype
Type
Returns
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
ITypeDescriptorContexttype
Type
Returns
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
ITypeDescriptorContextcultureInfo
CultureInfovalue
objectThe object to convert.
Returns
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
ITypeDescriptorContextcultureInfo
CultureInfovalue
objectThe object to convert.
destinationType
TypeThe Type to convert the
value
parameter to.
Returns
Exceptions
- ArgumentNullException
The
destinationType
parameter is null.- NotSupportedException
The conversion cannot be performed.