Converts a Mouse
- Inheritance:
-
object
Type
Converter object
Constructors
MouseWheelGestureConverter()
Initializes an instance of the class.
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.
Parameter | Type | Description |
---|---|---|
context | IType |
An IType |
sourceType | Type | A Type that represents the type you want to convert from. |
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.
Parameter | Type | Description |
---|---|---|
context | IType |
An IType |
destinationType | Type | A Type that represents the type you want to convert to. |
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.
Parameter | Type | Description |
---|---|---|
context | IType |
An IType |
culture | Culture |
The Culture |
value | object | The object to convert. |
Returns
Exceptions
Type | Condition |
---|---|
Not |
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.
Parameter | Type | Description |
---|---|---|
context | IType |
An IType |
culture | Culture |
A Culture |
value | object | The object to convert. |
destinationType | Type | The Type to convert the |
Returns
Exceptions
Type | Condition |
---|---|
Argument |
The |
Not |
The conversion cannot be performed. |