IValueConverterConvert Method |
Converts the value to the specified targetType
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax Object Convert(
Object value,
Type targetType,
Object parameter,
CultureInfo culture
)
Function Convert (
value As Object,
targetType As Type,
parameter As Object,
culture As CultureInfo
) As Object
abstract Convert :
value : Object *
targetType : Type *
parameter : Object *
culture : CultureInfo -> Object
Parameters
- value
- Type: SystemObject
Value to convert - targetType
- Type: SystemType
Type to convert the value to - parameter
- Type: SystemObject
Context-specific parameter passed from the binding - culture
- Type: System.GlobalizationCultureInfo
Culture to convert with
Return Value
Type:
ObjectA converted value with the type of
targetType.
Remarks
This is called when translating the value from the source to the destination, usually from the
Control to the View Model.
See Also