Class DecimalValueConverter
This class converts to decimal value
Inheritance
System.Object
DecimalValueConverter
Implements
Microsoft.Maui.Controls.IValueConverter
Namespace: Syncfusion.Maui.Core.Converters
Assembly: Syncfusion.Maui.Core.dll
Syntax
public class DecimalValueConverter : Object, IValueConverter
Constructors
DecimalValueConverter()
Declaration
public DecimalValueConverter()
Properties
NumberDecimalDigits
Gets and sets the decimal places
Declaration
public int NumberDecimalDigits { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
OutputType
Gets and sets the output format
Declaration
public OutputType OutputType { get; set; }
Property Value
| Type |
|---|
| OutputType |
Methods
Convert(Object, Type, Object, CultureInfo)
Converts input value with required decimal 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 decimal value |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException |
ConvertBack(Object, Type, Object, CultureInfo)
Converts back are impossible to revert to the original value
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 | Not Implemented |
Exceptions
| Type | Condition |
|---|---|
| System.NotImplementedException |
Implements
Microsoft.Maui.Controls.IValueConverter