menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DoubleToIntConverter - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DoubleToIntConverter

    This class converts double value to int value and vice versa.

    Inheritance
    System.Object
    DoubleToIntConverter
    Implements
    Microsoft.Maui.Controls.IValueConverter
    Namespace: Syncfusion.Maui.Core.Converters
    Assembly: Syncfusion.Maui.Core.dll
    Syntax
    public class DoubleToIntConverter : Object, IValueConverter

    Constructors

    DoubleToIntConverter()

    Declaration
    public DoubleToIntConverter()

    Methods

    Convert(Object, Type, Object, CultureInfo)

    Converts double value to an int type.

    Declaration
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    Parameters
    Type Name Description
    System.Object value

    The value must be the type of color

    System.Type targetType

    The type of target property

    System.Object parameter

    An additional parameter for the converter to handle, not used

    System.Globalization.CultureInfo culture

    The culture to use in the converter, not used

    Returns
    Type Description
    System.Object

    Returns the int value

    Exceptions
    Type Condition
    System.ArgumentNullException

    ConvertBack(Object, Type, Object, CultureInfo)

    Converts back the int value to double type

    Declaration
    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    Parameters
    Type Name Description
    System.Object value

    The value must be the type of color

    System.Type targetType

    The type of target property

    System.Object parameter

    An additional parameter for the converter to handle, not used

    System.Globalization.CultureInfo culture

    The culture to use in the converter, not used

    Returns
    Type Description
    System.Object

    Returns the double value

    Exceptions
    Type Condition
    System.ArgumentNullException

    Implements

    Microsoft.Maui.Controls.IValueConverter
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved