FontWeightConverter
Converts instances of FontWeight to and from other data types.
Definition
Namespace:Telerik.WinControls.Spreadsheet.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public sealed class FontWeightConverter : TypeConverter
Inheritance: objectTypeConverterFontWeightConverter
Inherited Members
Constructors
public FontWeightConverter()
Methods
Returns a value that indicates whether this converter can convert an object of the given type to an instance of FontWeight.
public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
Context information of a type.
tTypeThe type of the source that is being evaluated for conversion.
Returns:true if the converter can convert the provided type to an instance of FontWeight; otherwise, false.
Overrides:
Attempts to convert a specified object to an instance of FontWeight.
public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value)
Context information of a type.
ciCultureInfoCultureInfo of the type being converted.
valueobjectThe object being converted.
Returns:The instance of FontWeight created from the converted value.
Overrides: