FigureLengthConverter.CanConvertFrom(ITypeDescriptorContext, Type) Metodo

Definizione

Indica se un oggetto può essere convertito da un determinato tipo a un'istanza di un oggetto FigureLength.

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

Parametri

typeDescriptorContext
ITypeDescriptorContext

Descrive le informazioni di contesto di un tipo.

sourceType
Type

Origine Type su cui viene eseguita una query per il supporto della conversione.

Valori restituiti

true se l'oggetto del tipo specificato può essere convertito in un FigureLengthoggetto ; in caso contrario, false.

Commenti

Anziché supportare solo stringhe, questo convertitore supporta anche altre primitive numeriche, ad esempio UInt32.

Si applica a