Class ObjectToTypeConverter
Represents the class to convert the object to specified type.
Inheritance
System.Object
ObjectToTypeConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class ObjectToTypeConverter : Object, IValueConverter
Constructors
ObjectToTypeConverter()
Declaration
public ObjectToTypeConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts a value.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value produced by the binding source. |
System.Type | targetType | The type to convert to. |
System.Object | parameter | The converter parameter to use. |
System.Globalization.CultureInfo | language | The culture to use in the converter. |
Returns
Type | Description |
---|---|
System.Object | A converted value. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts a value.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value that is produced by the binding target. |
System.Type | targetType | The type to convert to. |
System.Object | parameter | The converter parameter to use. |
System.Globalization.CultureInfo | language | The culture to use in the converter. |
Returns
Type |
---|
System.Object |
Implements
System.Windows.Data.IValueConverter