This documentation is archived and is not being maintained.
FontUnitConverter::ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)
Visual Studio 2010
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 nullptr, the returned value is also nullptr. Similarly, if the specified object is String::Empty, Empty is returned. |
Note |
|---|
This method can only convert a string to a FontUnit. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
Note