Class FontToStringConverter
Converts FontFamily to string objects.
Inheritance
System.Object
FontToStringConverter
Implements
System.Windows.Data.IValueConverter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Tools
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class FontToStringConverter : IValueConverter
Remarks
Converts System.Windows.Media.FontFamily objects to System.String objects.
Constructors
FontToStringConverter()
Declaration
public FontToStringConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts System.Windows.Media.FontFamily object to System.String 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 System.String 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 | The System.String 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. |
Implements
System.Windows.Data.IValueConverter