menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FontToRecordConverter - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FontToRecordConverter

    Converts System.Windows.Media.FontFamily objects to FontFamilyRecord objects.

    Inheritance
    System.Object
    FontToRecordConverter
    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 FontToRecordConverter : 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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved