Class LocationConverter
Converts from/to Location structure.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class LocationConverter : TypeConverter
Constructors
LocationConverter()
Declaration
public LocationConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Gets a value that indicates whether this type converter can convert from a given type.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
System. ITypeDescriptorContext for this call. |
System. Type being queried for support. |
Returns
System. True if this converter can convert from the specified type; false otherwise. |
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Attempts to convert to a Location from the given object.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
System. The ITypeDescriptorContext for this call. |
System. The CultureInfo which is respected when converting. |
System. The object to convert to an instance of Location. |
Returns
System. Location that was constructed. |