Class CustomFontConverter
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 System.Drawing.FontConverter will not be able to deserialize a new System.Drawing.Font instance from serialized string.
Inheritance
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class CustomFontConverter : FontConverter
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
System.ComponentModel.ITypeDescriptorContext
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. |
System.Globalization.CultureInfo
culture
A CultureInfo object that specifies the culture used to represent the font. |
System.Object
value
The object to convert. |
Returns
System.Object
The converted object. |