Class
ElementShapeConverter

Provides type conversion services for ElementShape objects, enabling serialization and design-time support.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class ElementShapeConverter : ComponentConverter

Inheritance: objectTypeConverterReferenceConverterComponentConverterElementShapeConverter

Inherited Members ComponentConverter.GetProperties(ITypeDescriptorContext, object, Attribute[])ComponentConverter.GetPropertiesSupported(ITypeDescriptorContext)ReferenceConverter.GetStandardValues(ITypeDescriptorContext)ReferenceConverter.GetStandardValuesExclusive(ITypeDescriptorContext)ReferenceConverter.GetStandardValuesSupported(ITypeDescriptorContext)ReferenceConverter.IsValueAllowed(ITypeDescriptorContext, object)TypeConverter.CanConvertFrom(Type)TypeConverter.CanConvertTo(Type)TypeConverter.ConvertFrom(object)TypeConverter.ConvertFromInvariantString(string)TypeConverter.ConvertFromInvariantString(ITypeDescriptorContext, string)TypeConverter.ConvertFromString(string)TypeConverter.ConvertFromString(ITypeDescriptorContext, string)TypeConverter.ConvertFromString(ITypeDescriptorContext, CultureInfo, string)TypeConverter.ConvertTo(object, Type)TypeConverter.ConvertToInvariantString(object)TypeConverter.ConvertToInvariantString(ITypeDescriptorContext, object)TypeConverter.ConvertToString(object)TypeConverter.ConvertToString(ITypeDescriptorContext, object)TypeConverter.ConvertToString(ITypeDescriptorContext, CultureInfo, object)TypeConverter.CreateInstance(IDictionary)TypeConverter.CreateInstance(ITypeDescriptorContext, IDictionary)TypeConverter.GetConvertFromException(object)TypeConverter.GetConvertToException(object, Type)TypeConverter.GetCreateInstanceSupported()TypeConverter.GetCreateInstanceSupported(ITypeDescriptorContext)TypeConverter.GetProperties(object)TypeConverter.GetProperties(ITypeDescriptorContext, object)TypeConverter.GetPropertiesSupported()TypeConverter.GetStandardValues()TypeConverter.GetStandardValuesExclusive()TypeConverter.GetStandardValuesSupported()TypeConverter.IsValid(object)TypeConverter.IsValid(ITypeDescriptorContext, object)TypeConverter.SortProperties(PropertyDescriptorCollection, string[])

Constructors

ElementShapeConverter()

Initializes a new instance of the ElementShapeConverter class.

Declaration

cs-api-definition
public ElementShapeConverter()

Methods

CanConvertFrom(ITypeDescriptorContext, Type)

Determines whether this converter can convert from the specified source type.

Declaration

cs-api-definition
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)

Parameters

context

ITypeDescriptorContext

The format context.

sourceType

Type

The type to convert from.

Returns

bool

true if conversion is supported; otherwise, false.

Overrides ReferenceConverter.CanConvertFrom(ITypeDescriptorContext, Type)

CanConvertTo(ITypeDescriptorContext, Type)

Determines whether this converter can convert to the specified destination type.

Declaration

cs-api-definition
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)

Parameters

context

ITypeDescriptorContext

The format context.

destinationType

Type

The type to convert to.

Returns

bool

true if conversion is supported; otherwise, false.

Overrides TypeConverter.CanConvertTo(ITypeDescriptorContext, Type)

ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

Converts from the specified source value to an ElementShape instance.

Declaration

cs-api-definition
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)

Parameters

context

ITypeDescriptorContext

The format context.

culture

CultureInfo

The culture information.

value

object

The value to convert.

Returns

object

The converted ElementShape instance.

Overrides ReferenceConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)

Converts an ElementShape instance to the specified destination type.

Declaration

cs-api-definition
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)

Parameters

context

ITypeDescriptorContext

The format context.

culture

CultureInfo

The culture information.

value

object

The value to convert.

destinationType

Type

The type to convert to.

Returns

object

The converted value.

Overrides ReferenceConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)