Class TextToIntegerConverter
Converter to handle integer values based string values.
Inheritance
System.Object
TextToIntegerConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Diagram.Utility
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class TextToIntegerConverter : Object, IValueConverter
Constructors
TextToIntegerConverter()
Declaration
public TextToIntegerConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
To convert integer value as string.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Gets integer value to convert as string type values. |
System.Type | targetType | Gets target type value. |
System.Object | parameter | Gets object parameter |
System.Globalization.CultureInfo | culture | Gets culture info value. |
Returns
Type | Description |
---|---|
System.Object | Retunrs string value of integer value. |
ConvertBack(Object, Type, Object, CultureInfo)
To convert back string values into integer value.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Gets integer value to convert as string. |
System.Type | targetType | Gets target type value. |
System.Object | parameter | Gets object parameter values. |
System.Globalization.CultureInfo | culture | Gets culture info value. |
Returns
Type | Description |
---|---|
System.Object | Returns integer value. |
Implements
System.Windows.Data.IValueConverter