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
typeDescriptorContextITypeDescriptorContexttypeType
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
typeDescriptorContextITypeDescriptorContexttypeType
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
typeDescriptorContextITypeDescriptorContextcultureInfoCultureInfovalueobjectThe 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
typeDescriptorContextITypeDescriptorContextcultureInfoCultureInfovalueobjectThe object to convert.
destinationTypeTypeThe Type to convert the
valueparameter to.
Returns
Exceptions
- ArgumentNullException
The
destinationTypeparameter is null.- NotSupportedException
The conversion cannot be performed.