LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) Method
See Also 
Leadtools Namespace > RasterColorTypeConverter Class > ConvertTo Method : ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) Method



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 nullNothingnullptra null reference (Nothing in Visual Basic). Also, properties on the context object may return nullNothingnullptra null reference (Nothing in Visual Basic)
culture
A System.Globalization.CultureInfo that specifies the culture to represent the color.
value
The object to convert.
destinationType
The type to convert the object to.
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 nullNothingnullptra null reference (Nothing in Visual Basic). Also, properties on the context object may return nullNothingnullptra null reference (Nothing in Visual Basic)
culture
A System.Globalization.CultureInfo that specifies the culture to represent the color.
value
The object to convert.
destinationType
The type to convert the object to.
Converts the specified object to another type. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Overloads Overrides Public Function ConvertTo( _
   ByVal context As ITypeDescriptorContext, _
   ByVal culture As CultureInfo, _
   ByVal value As Object, _
   ByVal destinationType As Type _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As RasterColorTypeConverter
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)
C# 
public override object ConvertTo( 
   ITypeDescriptorContext context,
   CultureInfo culture,
   object value,
   Type destinationType
)
C++/CLI 
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 nullNothingnullptra null reference (Nothing in Visual Basic). Also, properties on the context object may return nullNothingnullptra null reference (Nothing in Visual Basic)
culture
A System.Globalization.CultureInfo that specifies the culture to represent the color.
value
The object to convert.
destinationType
The type to convert the object to.

Return Value

An Object representing the converted value.

Remarks

For more information, refer to TypeConverter.ConvertFrom

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also