FontUnitConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)
.NET Framework 3.0
Converts an object to a FontUnit in a specific culture.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
FontUnitConverter Members
System.Web.UI.WebControls Namespace
TypeConverter.ConvertFrom
FontUnit
String.Empty
Empty
System.ComponentModel.ITypeDescriptorContext
System.Globalization.CultureInfo
ASP.NET Server Controls and CSS Styles (Visual Studio)
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
Not applicable.
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. |
Reference
FontUnitConverter ClassFontUnitConverter Members
System.Web.UI.WebControls Namespace
TypeConverter.ConvertFrom
FontUnit
String.Empty
Empty
System.ComponentModel.ITypeDescriptorContext
System.Globalization.CultureInfo
Other Resources
Introduction to Cascading Style SheetsASP.NET Server Controls and CSS Styles (Visual Studio)
Community Additions
ADD
Show:
Note: