ImageGear .NET v25.0 - Updated
ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) Method




ImageGear.Core Assembly > ImageGear.Display Namespace > ImGearScrollComponentInfoConverter Class > ConvertTo Method : ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) Method
A formatter context. Use this object to extract additional information about the environment from which this converter is being invoked. Always check whether this value is null. Also, properties on the context object may also return null.
A CultureInfo object that specifies the culture to represent the Color.
The object to convert.
The type to convert the object to.
Converts the value to the specified type.
Syntax
'Declaration
 
Public Overloads Overrides Function ConvertTo( _
   ByVal context As ITypeDescriptorContext, _
   ByVal culture As CultureInfo, _
   ByVal value As Object, _
   ByVal destinationType As Type _
) As Object
'Usage
 
Dim instance As ImGearScrollComponentInfoConverter
Dim context As ITypeDescriptorContext
Dim culture As CultureInfo
Dim value As Object
Dim destinationType As Type
Dim value As Object
 
value = instance.ConvertTo(context, culture, value, destinationType)
public override object ConvertTo( 
   ITypeDescriptorContext context,
   CultureInfo culture,
   object value,
   Type destinationType
)
public: Object* ConvertTo( 
   ITypeDescriptorContext* context,
   CultureInfo* culture,
   Object* value,
   Type* destinationType
) override 
public:
Object^ ConvertTo( 
   ITypeDescriptorContext^ context,
   CultureInfo^ culture,
   Object^ value,
   Type^ destinationType
) override 

Parameters

context
A formatter context. Use this object to extract additional information about the environment from which this converter is being invoked. Always check whether this value is null. Also, properties on the context object may also return null.
culture
A CultureInfo object that specifies the culture to represent the Color.
value
The object to convert.
destinationType
The type to convert the object to.

Return Value

The converted object. If this method cannot convert to the destination type, it throws a NotSupportedException.
See Also

Reference

ImGearScrollComponentInfoConverter Class
ImGearScrollComponentInfoConverter Members
Overload List
ImGearScrollComponentInfo Structure