[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.ControlValidatorSetTypeConverter.CanConvertFrom

CanConvertFrom Method

CanConvertFrom(ITypeDescriptorContext, Type)

Returns whether this converter can convert an object of the given type of this converter, using the specified context.

Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Public Overrides Function CanConvertFrom(context As ITypeDescriptorContext, sourceType As Type) As Boolean
Parameters
Type Name Description
ITypeDescriptorContext context

An ITypeDescriptorContext that provides a format context.

Type sourceType

A Type that represents the type you want to convert from.

Returns
Type Description
bool

Only when the type of sourceType is string, it will return true; otherwise, false.

Overrides