Int32RectConverter.CanConvertFrom(ITypeDescriptorContext, Type) Metodo

Definizione

Determina se un oggetto può essere convertito da un tipo specifico in un'istanza di un oggetto Int32Rect.

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

Parametri

context
ITypeDescriptorContext

Descrive le informazioni di contesto di un tipo.

sourceType
Type

Tipo dell'oggetto di origine valutato per la conversione.

Restituisce

Boolean

true se il tipo può essere convertito in un oggetto Int32Rect; in caso contrario, false.

Si applica a