FontFamilyConverter
Converts string font-family names to FontFamily values; names that cannot be loaded use the Verdana fallback.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class FontFamilyConverter : TypeConverter
Inheritance: objectTypeConverterFontFamilyConverter
Inherited Members
Constructors
Creates a converter for font-family names.
public FontFamilyConverter()
Methods
Checks whether the source type is a string.
public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
The conversion context, when available.
tTypeThe type of the value to convert.
Returns:Overrides:
Creates a FontFamily from a string, falling back to Verdana if the named system font cannot be loaded; other values are passed to the base converter.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo cultureInfo, object o)
The conversion context, when available.
cultureInfoCultureInfoThe culture passed to the base converter for non-string inputs.
oobjectA font-family name or a value handled by the base converter.
Returns:The resolved font family or the base converter's result.
Overrides: