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



context
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
destinationType
A System.Type that represents the type to which you want to convert.
context
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
destinationType
A System.Type that represents the type to which you want to convert.
Returns a value indicating whether this converter can convert an object to the given destination type using the context. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Overloads Overrides Public Function CanConvertTo( _
   ByVal context As ITypeDescriptorContext, _
   ByVal destinationType As Type _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterColorTypeConverter
Dim context As ITypeDescriptorContext
Dim destinationType As Type
Dim value As Boolean
 
value = instance.CanConvertTo(context, destinationType)
C# 
public override bool CanConvertTo( 
   ITypeDescriptorContext context,
   Type destinationType
)
C++/CLI 
public:
bool CanConvertTo( 
   ITypeDescriptorContext^ context,
   Type^ destinationType
) override 

Parameters

context
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
destinationType
A System.Type that represents the type to which you want to convert.

Return Value

true if this converter can perform the operation; otherwise, false.

Remarks

For more information, refer to TypeConverter.CanConvertFrom

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