Class ElementShapeConverter
Provides type conversion services for ElementShape objects, enabling serialization and design-time support.
Inheritance
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class ElementShapeConverter : ComponentConverter
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
System.ComponentModel.ITypeDescriptorContext
context
The format context. |
System.Type
sourceType
The type to convert from. |
Returns
System.Boolean
|
CanConvertTo(ITypeDescriptorContext, Type)
Determines whether this converter can convert to the specified destination type.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
System.ComponentModel.ITypeDescriptorContext
context
The format context. |
System.Type
destinationType
The type to convert to. |
Returns
System.Boolean
|
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
System.ComponentModel.ITypeDescriptorContext
context
The format context. |
System.Globalization.CultureInfo
culture
The culture information. |
System.Object
value
The value to convert. |
Returns
System.Object
The converted ElementShape instance. |
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
System.ComponentModel.ITypeDescriptorContext
context
The format context. |
System.Globalization.CultureInfo
culture
The culture information. |
System.Object
value
The value to convert. |
System.Type
destinationType
The type to convert to. |
Returns
System.Object
The converted value. |