Provides type conversion services for ElementShape objects, enabling serialization and design-time support.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class ElementShapeConverter : ComponentConverter
Inheritance: objectTypeConverterReferenceConverterComponentConverterElementShapeConverter
Inherited Members
Constructors
Initializes a new instance of the ElementShapeConverter class.
public ElementShapeConverter()
Methods
Determines whether this converter can convert from the specified source type.
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
The format context.
sourceTypeTypeThe type to convert from.
Returns:true if conversion is supported; otherwise, false.
Overrides:
Determines whether this converter can convert to the specified destination type.
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
The format context.
destinationTypeTypeThe type to convert to.
Returns:true if conversion is supported; otherwise, false.
Overrides:
Converts from the specified source value to an ElementShape instance.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
The format context.
cultureCultureInfoThe culture information.
valueobjectThe value to convert.
Returns:The converted ElementShape instance.
Overrides:
Converts an ElementShape instance to the specified destination type.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
The format context.
cultureCultureInfoThe culture information.
valueobjectThe value to convert.
destinationTypeTypeThe type to convert to.
Returns:The converted value.
Overrides: