FontUnitConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)
.NET Framework (current version)
Converts an object to a FontUnit in a specific culture.
Assembly: System.Web (in System.Web.dll)
Public Overrides Function ConvertFrom ( context As ITypeDescriptorContext, culture As CultureInfo, value As Object ) As Object
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. |
.NET Framework
Available since 1.1
Available since 1.1
Show:
