Xceed Toolkit Plus for WPF v4.6 Documentation
Convert Method (MultimodalResultConverter)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid.Converters Namespace > MultimodalResultConverter Class : Convert Method
The array of multimodal results to convert.

The type of the binding target property.

The converter parameter to use.

The culture to use in the converter.

Converts an array of multimodal results to a comma-separated string (default).
Syntax
'Declaration
 
Public Function Convert( _

   ByVal value As Object, _

   ByVal targetType As Type, _

   ByVal parameter As Object, _

   ByVal culture As CultureInfo _

) As Object
'Usage
 
Dim instance As MultimodalResultConverter

Dim value As Object

Dim targetType As Type

Dim parameter As Object

Dim culture As CultureInfo

Dim value As Object

 

value = instance.Convert(value, targetType, parameter, culture)
public object Convert( 

   object value,

   Type targetType,

   object parameter,

   CultureInfo culture

)

Parameters

value
The array of multimodal results to convert.
targetType

The type of the binding target property.

parameter
The converter parameter to use.
culture

The culture to use in the converter.

Return Value

A comma-separated string representing the multimodal result. The separator can be modified by setting the Separator property.
Remarks

By default, the result of a Mode statistical function will be unimodal. To enable multimodal results, the AllowMultimodal property must be set to true.

In the case where AllowMultimodal is set to true, a MultimodalResultConverter must be used to display the result, which will always be an array, even if the result is not multimodal. If false and a multimodal result occurs, only one of the mode will be returned. Ex. : [1, 2, 2, 6, 6] is bimodal (2 and 6) and the function will return either 2 or 6.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MultimodalResultConverter Class
MultimodalResultConverter Members