GridLengthConverter.CanConvertFrom(ITypeDescriptorContext, Type) Método

Definição

Determina se uma classe pode ser convertida de um dado tipo para uma instância de GridLength.

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

Parâmetros

typeDescriptorContext
ITypeDescriptorContext

Descreve a informação de contexto de um tipo.

sourceType
Type

O tipo da fonte que está a ser avaliada para conversão.

Devoluções

true se o conversor puder converter do tipo especificado para uma instância de GridLength; caso contrário, false.

Observações

GridLengthConvertersuporta a conversão para e a partir dos seguintes tipos: String, Decimal, Single, Double, Int16, Int32Int64UInt16UInt32UInt64.

Aplica-se a

Ver também