FontUnitConverter::ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)
Converts a FontUnit to an object with a different data type.
Assembly: System.Web (in System.Web.dll)
public: virtual Object^ ConvertTo( ITypeDescriptorContext^ context, CultureInfo^ culture, Object^ value, Type^ destinationType ) override
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
A System::Object that represents the FontUnit to convert.
- destinationType
- Type: System::Type
A System::Type that represents the data type to convert to.
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 nullptr. 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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: