ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

GenericTypeConverter.CanConvertFrom Method

Overloaded. Returns whether this converter can convert an object of one type to the type of this converter.

[Visual Basic]

Overrides Public Function CanConvertFrom( _

ByVal context As ITypeDescriptorContext, _

ByVal sourceType As Type _

) As Boolean

[C#]

override public bool CanConvertFrom(

ITypeDescriptorContext context,

Type sourceType

);

[Delphi]

public function CanConvertFrom(

context: ITypeDescriptorContext;

sourceType: Type

): Boolean; overload; override;

Parameters

context

A System.ComponentModel.ITypeDescriptorContext that provides a format context.

sourceType

The type to convert from.

Return Value

True if this converter can perform the conversion; otherwise, False.

See Also

GenericTypeConverter Class | GenericTypeConverter Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.