Class LabelConverter
Represents a class that is used to convert the numbers into string value.
Inheritance
System.Object
LabelConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Diagram.Controls
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class LabelConverter : Object, IValueConverter
Constructors
LabelConverter()
Declaration
public LabelConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
To convert the given number value to its equivalent string value.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value which is going to convert as string. |
System.Type | targetType | The target type of the value. |
System.Object | parameter | The parameter value. |
System.Globalization.CultureInfo | culture | The culture data of the string. |
Returns
Type | Description |
---|---|
System.Object | Returns the string value. |
ConvertBack(Object, Type, Object, CultureInfo)
To return the given number value to its equivalent string value.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value which is going to convert as string. |
System.Type | targetType | The target type of the value. |
System.Object | parameter | The parameter value. |
System.Globalization.CultureInfo | culture | The culture data of the string. |
Returns
Type | Description |
---|---|
System.Object | Returns the object value. |
Implements
System.Windows.Data.IValueConverter