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
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
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. |
Reference
FontUnitConverter ClassFontUnitConverter Members
System.Web.UI.WebControls Namespace
TypeConverter.ConvertTo
FontUnit
FontUnit.Type Property
String.Empty
FontSize
System.ComponentModel.ITypeDescriptorContext
System.Globalization.CultureInfo
System.Type
Other Resources
Introduction to Cascading Style SheetsASP.NET Server Controls and CSS Styles (Visual Studio)
Note: