FontStyleConverter
Class
Converts the supported font-style names to FontStyle values.
Definition
Namespace:Telerik.WinControls.Spreadsheet.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
C#
public sealed class FontStyleConverter : TypeConverter
Inheritance: objectTypeConverterFontStyleConverter
Inherited Members
Constructors
C#
public FontStyleConverter()
Methods
Determines whether the specified type can be converted to a font style.
C#
public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
The conversion context.
tTypeThe source type.
Returns:Overrides:
Converts a supported font-style name to its corresponding value.
C#
public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value)
The conversion context.
ciCultureInfoThe culture provider; style-name matching is case-insensitive and does not use this value.
valueobjectOne of the names Normal, Italic, or Oblique.
The corresponding FontStyle.
Exceptions: NotSupportedExceptionvalue is null.
value is not a string.
value is not a supported font-style name.
Overrides: