Class FontToRecordConverter
Converts System.Windows.Media.FontFamily objects to FontFamilyRecord objects.
Inheritance
System.Object
FontToRecordConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.Windows.Tools
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class FontToRecordConverter : Object, IValueConverter
Constructors
FontToRecordConverter()
Declaration
public FontToRecordConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts System.Windows.Media.FontFamily object to FontFamilyRecord object.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | FontFamily object to be converted. |
System.Type | targetType | The type of the binding target property. |
System.Object | parameter | Does not matter. |
System.Globalization.CultureInfo | culture | Currently used culture. |
Returns
Type | Description |
---|---|
System.Object | A converted value. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The value parameter is not of type System.Windows.Media.FontFamily. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts FontFamilyRecord object to System.Windows.Media.FontFamily object .
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | FontFamilyRecord object to be converted. |
System.Type | targetType | The type to convert to. |
System.Object | parameter | Does not matter. |
System.Globalization.CultureInfo | culture | Currently used culture. |
Returns
Type | Description |
---|---|
System.Object | A converted value. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The value parameter is not of type FontFamilyRecord. |
Implements
System.Windows.Data.IValueConverter