Bewerken

Delen via


SizeFConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

Definition

Returns a value indicating whether the converter can convert from the type specified to the SizeF type, using the specified context.

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ sourceType);
public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext context, Type sourceType);
public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext? context, Type sourceType);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (context As ITypeDescriptorContext, sourceType As Type) As Boolean

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext through which additional context can be supplied.

sourceType
Type

A Type the represents the type you wish to convert from.

Returns

true to indicate the conversion can be performed; otherwise, false.

Remarks

If the specified type is a String, this method will always return true.

Applies to