CVB.Net 14.0
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
MathConverter Class Reference

Converts the binding values according to the mathematical expression in the parameter. More...

Inherits IValueConverter, and IMultiValueConverter.

Public Member Functions

object Convert (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 Conversion (see MSDN help for more information about this method...). More...
 
object Convert (object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 Conversion (see MSDN help for more information about this method...). More...
 
object ConvertBack (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 Inverse conversion - not supported by this converter. More...
 
object[] ConvertBack (object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
 Inverse conversion (not supported). More...
 

Protected Member Functions

virtual object Process (object[] values, Type targetType, string parameter)
 The actual processing function. More...
 

Detailed Description

Converts the binding values according to the mathematical expression in the parameter.

Refer to the binding values via variable v for single binding and v0, v1, v2, ... for multibinding.

Member Function Documentation

◆ Convert() [1/2]

object Convert ( object  value,
Type  targetType,
object  parameter,
System.Globalization.CultureInfo  culture 
)

Conversion (see MSDN help for more information about this method...).

Parameters
valueInput value.
targetTypeTarget data type (currently only double is supported
parameterMathmetical expression.
cultureIgnored
Returns
Conversion result

◆ Convert() [2/2]

object Convert ( object[]  values,
Type  targetType,
object  parameter,
System.Globalization.CultureInfo  culture 
)

Conversion (see MSDN help for more information about this method...).

Parameters
valuesInput values to be converted
targetTypeTarget data type (currently only double is supported
parameterMathmetical expression.
cultureIgnored
Returns
Conversion result

◆ ConvertBack() [1/2]

object ConvertBack ( object  value,
Type  targetType,
object  parameter,
System.Globalization.CultureInfo  culture 
)

Inverse conversion - not supported by this converter.

Parameters
valueIgnored.
targetTypeIgnored.
parameterIgnored.
cultureIgnored.
Returns
Inverse conversion result.

◆ ConvertBack() [2/2]

object[] ConvertBack ( object  value,
Type[]  targetTypes,
object  parameter,
System.Globalization.CultureInfo  culture 
)

Inverse conversion (not supported).

Parameters
valueignored
targetTypesignored
parameterignored
cultureignored
Returns
Nothing (always throws).
Exceptions
NotSupportedExceptionAlways.

◆ Process()

virtual object Process ( object[]  values,
Type  targetType,
string  parameter 
)
protectedvirtual

The actual processing function.

Parameters
valuesvalues to be processed
targetTypetarget type
parameterConversion parameter containing the formula.
Returns
Evaluation result.