Class FormatStringConverter
This class converts string value to formatted value
Inheritance
System.Object
FormatStringConverter
Implements
Microsoft.Maui.Controls.IValueConverter
Namespace: Syncfusion.Maui.Core.Converters
Assembly: Syncfusion.Maui.Core.dll
Syntax
public class FormatStringConverter : Object, IValueConverter
Constructors
FormatStringConverter()
Declaration
public FormatStringConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts string value to formatted string.
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 string |
System.Type | targetType | The type of the 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 Formatted string |
ConvertBack(Object, Type, Object, CultureInfo)
Converts back is impossible to revert to original value
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | value be the type of InverseColor |
System.Type | targetType | The type of the 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