menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DoubleToNegativeDoubleConverter - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DoubleToNegativeDoubleConverter

    This class implements conversion from positive double to negative double.

    Inheritance
    System.Object
    DoubleToNegativeDoubleConverter
    Implements
    System.Windows.Data.IMultiValueConverter
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Tools
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class DoubleToNegativeDoubleConverter : IMultiValueConverter

    Constructors

    DoubleToNegativeDoubleConverter()

    Declaration
    public DoubleToNegativeDoubleConverter()

    Methods

    Convert(Object[], Type, Object, CultureInfo)

    This method converts double-value to negative double-value taking into consideration top and bottom thickness.

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

    Contains list of double value and thickness.

    System.Type targetType

    The type in which the value should be converted.

    System.Object parameter

    Contains name control part for painting out.

    System.Globalization.CultureInfo culture

    The culture for given converting.

    Returns
    Type Description
    System.Object

    Negative value.

    ConvertBack(Object, Type[], Object, CultureInfo)

    Converts a binding target value to the source binding values.

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

    The value that the binding target produces.

    System.Type[] targetTypes

    The array of types to convert to. The array length indicates the number and types of values that are suggested for the method to return.

    System.Object parameter

    The converter parameter to use.

    System.Globalization.CultureInfo culture

    The culture to use in the converter.

    Returns
    Type Description
    System.Object[]

    An array of values that have been converted from the target value back to the source values.

    Implements

    System.Windows.Data.IMultiValueConverter
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved