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

Composes a Thickness value from 1 or more input values, potentially doing calculations on them as defined by the converter 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 by this converter. More...
 

Protected Member Functions

Thickness Parse (double[] v, string param)
 Convert one or more double values into a Thickness structure. More...
 

Detailed Description

Composes a Thickness value from 1 or more input values, potentially doing calculations on them as defined by the converter parameter.

Refer to the binding values via variable v; calculation is being carried out uniformly for all the constituents...

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
Nothing.
Exceptions
NotSupportedExceptionAlways.

◆ ConvertBack() [2/2]

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

Inverse conversion - not supported by this converter.

Parameters
valueIgnored.
targetTypesIgnored.
parameterIgnored.
cultureIgnored.
Returns
Nothing.
Exceptions
NotSupportedExceptionAlways.

◆ Parse()

Thickness Parse ( double[]  v,
string  param 
)
protected

Convert one or more double values into a Thickness structure.

Parameters
vdouble values
paramparser expression(s) (comma separated)
Returns
The parsed thickness.