ClassElementShapeConverter
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
ElementShapeConverter()
Initializes a new instance of the ElementShapeConverter class.
Declaration
public ElementShapeConverter()
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Determines whether this converter can convert from the specified source type.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
context
The format context.
sourceType
The type to convert from.
Returns
true if conversion is supported; otherwise, false.
Overrides
CanConvertTo(ITypeDescriptorContext, Type)
Determines whether this converter can convert to the specified destination type.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
context
The format context.
destinationType
The type to convert to.
Returns
true if conversion is supported; otherwise, false.
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts from the specified source value to an ElementShape instance.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
context
The format context.
culture
The culture information.
value
The value to convert.
Returns
The converted ElementShape instance.
Overrides
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts an ElementShape instance to the specified destination type.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
context
The format context.
culture
The culture information.
value
The value to convert.
destinationType
The type to convert to.
Returns
The converted value.
Overrides