FontUnitConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)
Assembly: System.Web (in system.web.dll)
public: virtual Object^ ConvertTo ( ITypeDescriptorContext^ context, CultureInfo^ culture, Object^ value, Type^ destinationType ) override
public Object ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType )
public override function ConvertTo ( context : ITypeDescriptorContext, culture : CultureInfo, value : Object, destinationType : Type ) : 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
A System.Object that represents the FontUnit to convert.
- destinationType
A System.Type that represents the data type to convert to.
Return Value
A System.Object that represents the converted value.Use the ConvertTo method to convert the FontUnit specified by the value parameter to an object with the data type specified by the destinationType parameter.
Note |
|---|
| String.Empty is returned from this method if the value parameter contains a null reference (Nothing in Visual Basic). String.Empty is also returned if the Type property of the FontUnit specified by the value parameter contains the value FontSize.NotSet. |
Note |
|---|
| This method can only convert a FontUnit to a string. |
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.ConvertTo
FontUnit Structure
FontUnit.Type Property
String.Empty
FontSize Enumeration
System.ComponentModel.ITypeDescriptorContext
System.Globalization.CultureInfo
System.Type
Other Resources
Cascading Style Sheets OverviewCascading Style Sheets Overview
Note