FontUnitConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Método
Definição
public:
override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (context As ITypeDescriptorContext, culture As CultureInfo, value As Object) As Object
Parâmetros
- context
- ITypeDescriptorContext
Um objeto ITypeDescriptorContext implementado que fornece informações sobre o contexto de um conversor de tipo.An ITypeDescriptorContext implemented object that provides information about the context of a type converter.
- culture
- CultureInfo
Um CultureInfo que especifica a cultura para representar o FontUnit, quando expresso em pontos.A CultureInfo that specifies the culture to represent the FontUnit, when it is expressed in points.
Retornos
Um Object que representa o valor convertido.A Object that represents the converted value.
Comentários
Use o ConvertFrom método para converter o objeto especificado pelo value parâmetro em um FontUnit na cultura especificada pelo culture parâmetro.Use the ConvertFrom method to convert the object specified by the value parameter to a FontUnit in the culture specified by the culture parameter.
Observação
Se o objeto especificado for null , o valor retornado também será null .If the specified object is null, the returned value is also null. Da mesma forma, se o objeto especificado for String.Empty , Empty será retornado.Similarly, if the specified object is String.Empty, Empty is returned.
Observação
Esse método só pode converter uma cadeia de caracteres em um FontUnit .This method can only convert a string to a FontUnit.