FontWeightConverter
Converts case-insensitive font-weight names or culture-parsed OpenType weight numbers to FontWeight values.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public sealed class FontWeightConverter : TypeConverter
Inheritance: objectTypeConverterFontWeightConverter
Inherited Members
Constructors
public FontWeightConverter()
Methods
Checks whether the source type is a string.
public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
The conversion context, when available.
tTypeThe type of the value to convert.
Returns:Overrides:
Parses a recognized weight name or an integer OpenType weight in the range supported by FromOpenTypeWeight(int).
public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value)
The conversion context, when available.
ciCultureInfoThe culture used to parse numeric weight strings.
valueobjectA recognized weight name or integer weight string.
Returns:The parsed FontWeight.
Exceptions: ArgumentExceptionvalue is a non-null value that is not a string.
value is not a recognized name or integer.
A parsed integer is outside the supported OpenType weight range.
Overrides: