This documentation is for the old version. Go to the latest Upload Suite docs

GradientColorConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Returns a value indicating whether this converter can convert an object of the given type to the GradientColor type, using the specified context.

Namespace: Aurigma.ImageUploader
Assembly: Aurigma.ImageUploader (in Aurigma.ImageUploader.dll)

Syntax

Visual Basic
Public Overrides Function CanConvertFrom ( _
	context As ITypeDescriptorContext, _
	sourceType As Type _
) As Boolean
C#
public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)

Parameters

context

Type: System.ComponentModel.ITypeDescriptorContext

The format context.

sourceType

Type: System.Type

The type you want to convert from.

Return Value

Type: System.Boolean

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

See Also

Reference