FontUnitConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)
Assembly: System.Web (in system.web.dll)
public: virtual Object^ ConvertFrom ( ITypeDescriptorContext^ context, CultureInfo^ culture, Object^ value ) override
public Object ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, Object value )
public override function ConvertFrom ( context : ITypeDescriptorContext, culture : CultureInfo, value : Object ) : Object
Parameters
- context
An System.ComponentModel.ITypeDescriptorContext implemented object that provides information about the context of a type converter.
- culture
A System.Globalization.CultureInfo that specifies the culture to represent the FontUnit, when it is expressed in points.
- value
The object to convert to a FontUnit.
Return Value
A System.Object that represents the converted value.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 a null reference (Nothing in Visual Basic), the returned value is also a null reference (Nothing in Visual Basic). Similarly, if the specified object is String.Empty, Empty is returned. |
Note |
|---|
| This method can only convert a string to a FontUnit. |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
FontUnitConverter ClassFontUnitConverter Members
System.Web.UI.WebControls Namespace
TypeConverter.ConvertFrom
FontUnit Structure
String.Empty
Empty
System.ComponentModel.ITypeDescriptorContext
System.Globalization.CultureInfo
Other Resources
Cascading Style Sheets OverviewCascading Style Sheets Overview
Note