Class DataTypeConverter
Provides a type converter for a property representing a data type.
Inheritance
System.Object
DataTypeConverter
Assembly: FastReport.OpenSource.dll
Syntax
public class DataTypeConverter : TypeConverter
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
| Type |
Name |
Description |
| ITypeDescriptorContext |
context |
|
| System.Type |
sourceType |
|
Returns
| Type |
Description |
| System.Boolean |
|
CanConvertTo(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
| Type |
Name |
Description |
| ITypeDescriptorContext |
context |
|
| System.Type |
destinationType |
|
Returns
| Type |
Description |
| System.Boolean |
|
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
| Type |
Name |
Description |
| ITypeDescriptorContext |
context |
|
| System.Globalization.CultureInfo |
culture |
|
| System.Object |
value |
|
Returns
| Type |
Description |
| System.Object |
|
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
| Type |
Name |
Description |
| ITypeDescriptorContext |
context |
|
| System.Globalization.CultureInfo |
culture |
|
| System.Object |
value |
|
| System.Type |
destinationType |
|
Returns
| Type |
Description |
| System.Object |
|