FontStyleConverter
Converts the case-insensitive names Normal, Italic, and Oblique to FontStyle.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public sealed class FontStyleConverter : TypeConverter
Inheritance: objectTypeConverterFontStyleConverter
Inherited Members
Constructors
public FontStyleConverter()
Methods
Determines whether the specified source type can be converted to a font style.
public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
The conversion context, which this converter does not use.
tTypeThe source type to test.
Returns:Overrides:
Parses one of the supported font-style names. Matching is case-insensitive; the culture parameter does not affect name recognition.
public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value)
The conversion context, which this converter does not use.
ciCultureInfoThe culture parameter; this converter does not use it.
valueobjectThe string representation of a font style.
Returns:The corresponding FontStyle.
Exceptions: NotSupportedExceptionvalue is null.
value is a non-null value that is not a string.
value is not a recognized font-style name.
Overrides: