VintaSoft Barcode .NET SDK 16.0: Documentation for .NET developer
Vintasoft.Imaging.TypeConverters Namespace / ResolutionConverter Class / CanConvertFrom Methods / CanConvertFrom(ITypeDescriptorContext,Type) Method
Syntax Requirements SeeAlso
In This Topic
CanConvertFrom(ITypeDescriptorContext,Type) Method (ResolutionConverter)
In This Topic
Determines that this converter can convert an object in the given source type to the native type of the converter.
Syntax
'Declaration

Public Overloads Overrides Function CanConvertFrom( _
ByVal context
A formatter context. This object can be used to get additional information about the environment this converter is being called from. This may be null, so you should always check. Also, properties on the context object may also return null.
As System.ComponentModel.ITypeDescriptorContext, _
ByVal sourceType
The type you want to convert from.
As System.Type _
) As Boolean

Parameters

context
A formatter context. This object can be used to get additional information about the environment this converter is being called from. This may be null, so you should always check. Also, properties on the context object may also return null.
sourceType
The type you want to convert from.

Return Value

True if this object can perform the conversion; otherwise, false.
Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also