DataGridPreferredColumnWidthTypeConverter.CanConvertFrom Método

Definición

Obtiene un valor que especifica si el convertidor puede convertir un objeto del tipo de origen especificado al tipo nativo del convertidor.

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

Parámetros

context
ITypeDescriptorContext

ITypeDescriptorContext que ofrece un contexto de formato.

sourceType
Type

Type que representa el tipo desde el que se quiere convertir.

Devoluciones

Boolean

Es true si este convertidor puede realizar la conversión; de lo contrario, es false.

Se aplica a