Leadtools.Windows.Controls.Pro Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
CanConvertFrom(ITypeDescriptorContext,Type) Method
See Also 
Leadtools.Windows.Controls Namespace > RasterImageConverter Class > CanConvertFrom Method : CanConvertFrom(ITypeDescriptorContext,Type) Method



context
Type context used for conversion
sourceType
The source type to be converted
context
Type context used for conversion
sourceType
The source type to be converted
This member overrides TypeConverter.CanConvertFrom.

Syntax

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

Parameters

context
Type context used for conversion
sourceType
The source type to be converted

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also