FontUnitConverter.ConvertFrom Method

Definition

Converts an object to a FontUnit in a specific culture.

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

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext implemented object that provides information about the context of a type converter.

culture
CultureInfo

A CultureInfo that specifies the culture to represent the FontUnit, when it is expressed in points.

value
Object

The object to convert to a FontUnit.

Returns

A Object that represents the converted value.

Remarks

Use the ConvertFrom method to convert the object specified by the value parameter to a FontUnit in the culture specified by the culture parameter.

Note

If the specified object is null, the returned value is also null. Similarly, if the specified object is String.Empty, Empty is returned.

Note

This method can only convert a string to a FontUnit.

Applies to

See also