Class ArcValueConverter
Converts instances of other types to and from instances of ArcValue.
Namespace: Sartorius.SAF.Presentation.Controls.Shapes
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class ArcValueConverter : TypeConverter
Methods
View SourceCanConvertFrom(ITypeDescriptorContext, Type)
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeDescriptorContext | context | An ITypeDescriptorContext that provides a format context. |
| Type | sourceType | A Type that represents the type you want to convert from. |
Returns
| Type | Description |
|---|---|
| bool | true if this converter can perform the conversion; otherwise, false. |
Overrides
View SourceCanConvertTo(ITypeDescriptorContext, Type)
Returns whether this converter can convert the object to the specified type, using the specified context.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeDescriptorContext | typeDescriptorContext | |
| Type | destinationType | A Type that represents the type you want to convert to. |
Returns
| Type | Description |
|---|---|
| bool | true if this converter can perform the conversion; otherwise, false. |
Overrides
View SourceConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Converts the given object to the type of this converter, using the specified context and culture information.
Declaration
public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeDescriptorContext | typeDescriptorContext | |
| CultureInfo | cultureInfo | |
| object | source |
Returns
| Type | Description |
|---|---|
| object | An object that represents the converted value. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The conversion cannot be performed. |
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts the given value object to the specified type, using the specified context and culture information.
Declaration
public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeDescriptorContext | typeDescriptorContext | |
| CultureInfo | cultureInfo | |
| object | value | The object to convert. |
| Type | destinationType | The Type to convert the |
Returns
| Type | Description |
|---|---|
| object | An object that represents the converted value. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The |
| NotSupportedException | The conversion cannot be performed. |