FontUnitConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)
Converts an object to a FontUnit in a specific culture.
Assembly: System.Web (in System.Web.dll)
public: virtual Object^ ConvertFrom( ITypeDescriptorContext^ context, CultureInfo^ culture, Object^ value ) override
Parameters
- context
-
Type:
System.ComponentModel::ITypeDescriptorContext^
An System.ComponentModel::ITypeDescriptorContext implemented object that provides information about the context of a type converter.
- culture
-
Type:
System.Globalization::CultureInfo^
A System.Globalization::CultureInfo that specifies the culture to represent the FontUnit, when it is expressed in points.
- value
-
Type:
System::Object^
The object to convert to a FontUnit.
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. |
Available since 1.1
