Class ValueToStringConverter
Represents a class that implements value to string converter.
Inheritance
System.Object
ValueToStringConverter
Implements
System.Windows.Data.IValueConverter
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.Shared.Wpf.dll
Syntax
public class ValueToStringConverter : IValueConverter
Constructors
ValueToStringConverter()
Declaration
public ValueToStringConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts float to string.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Float to be converted. |
System.Type | targetType | Type, the color is to be converted to. |
System.Object | parameter | Does not matter. |
System.Globalization.CultureInfo | culture | Currently used culture. Not used here. |
Returns
Type | Description |
---|---|
System.Object | Converted color. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts string to float.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Float to be converted |
System.Type | targetType | Type, the color is to be converted to. |
System.Object | parameter | Does not matter. |
System.Globalization.CultureInfo | culture | Currently used culture. Not used here. |
Returns
Type | Description |
---|---|
System.Object | Converted value. |
Implements
System.Windows.Data.IValueConverter