ClassCustomFontConverter
Converts Font objects from one data type to another. The CustomFont converter is used for cases where font is represented in GetCustomFonts() and is not installed on the machine. The standard FontConverter will not be able to deserialize a new Font instance from serialized string.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CustomFontConverter : FontConverter
Inheritance: objectTypeConverterFontConverterCustomFontConverter
Inherited Members
Constructors
CustomFontConverter()
Declaration
public CustomFontConverter()
Methods
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts the specified object to the native type of the converter.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
context
A formatter context. This object can be used to get additional information about the environment this converter is being called from. This may be null, so you should always check. Also, properties on the context object may also return null.
culture
A CultureInfo object that specifies the culture used to represent the font.
value
The object to convert.
Returns
The converted object.
Overrides