FontStyleConverter
Class
Converts the case-insensitive strings Normal, Italic, and Oblique to FontStyle values.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
C#
public sealed class FontStyleConverter : TypeConverter
Inheritance: objectTypeConverterFontStyleConverter
Inherited Members
Constructors
C#
public FontStyleConverter()
Methods
Checks whether the source type is a string.
C#
public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
The conversion context, when available.
tTypeThe type of the value to convert.
Returns:Overrides:
Converts a recognized font-style name to a FontStyle.
C#
public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value)
The conversion context, when available.
ciCultureInfoThe conversion culture; style names are matched case-insensitively.
valueobjectOne of the supported style names.
Returns:The corresponding FontStyle.
Exceptions: ArgumentExceptionvalue is a non-null value that is not a string.
value is not a supported style name.
Overrides: