Class FontWeightConverter
Converts instances of FontWeight to and from other data types.
Inheritance
Namespace: Telerik.WinControls.Spreadsheet.UI
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public sealed class FontWeightConverter : TypeConverter
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
System.ComponentModel.ITypeDescriptorContext
td
Context information of a type. |
System.Type
t
The type of the source that is being evaluated for conversion. |
Returns
System.Boolean
true if the converter can convert the provided type to an instance of FontWeight; otherwise, false. |
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
System.ComponentModel.ITypeDescriptorContext
td
Context information of a type. |
System.Globalization.CultureInfo
ci
CultureInfo of the type being converted. |
System.Object
value
The object being converted. |
Returns
System.Object
The instance of FontWeight created from the converted value. |