[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.BooleanToDoubleConverter.Convert

Convert Method

Convert(object, Type, object, CultureInfo)

Converts a bool value to a double value.

Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Public Function Convert(value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object
Parameters
Type Name Description
object value

The bool value to convert. This value can be a standard bool value or a nullable Boolean value.

Type targetType

This parameter is not used.

object parameter

This parameter is not used.

CultureInfo culture

This parameter is not used.

Returns
Type Description
object

1 if value is true; otherwise, 0.

Implements