FontFamilyConverter
Class
Converts font-family name strings to FontFamily values.
Definition
Namespace:Telerik.WinControls.Spreadsheet.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
C#
public class FontFamilyConverter : TypeConverter
Inheritance: objectTypeConverterFontFamilyConverter
Inherited Members
Constructors
Creates a converter for font-family values.
C#
public FontFamilyConverter()
Methods
Determines whether the specified type can be converted to a font family.
C#
public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
The conversion context.
tTypeThe source type.
Returns:Overrides:
Converts a string to a font family, delegating other values to the base converter.
C#
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo cultureInfo, object o)
The conversion context.
cultureInfoCultureInfoThe culture provider.
oobjectThe font-family name to convert.
Returns:A FontFamily for a string, or the base converter's result for another value.
Overrides: