ClassFontWeightConverter
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
FontWeightConverter()
Declaration
public FontWeightConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Returns a value that indicates whether this converter can convert an object of the given type to an instance of FontWeight.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
Parameters
td
Context information of a type.
t
The 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
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Attempts to convert a specified object to an instance of FontWeight.
Declaration
public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value)
Parameters
td
Context information of a type.
ci
CultureInfo of the type being converted.
value
The object being converted.
Returns
The instance of FontWeight created from the converted value.
Overrides