FontNamesConverter.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
A System.ComponentModel.ITypeDescriptorContext object that provides information about the context of a type converter. This parameter is not used in this method. It is reserved for future versions of this method. You can optionally pass in a null reference (Nothing in Visual Basic) for this parameter.
- culture
A System.Globalization.CultureInfo object that represents information about a culture such as language, calendar system, and so on. This parameter is not used in this method. It is reserved for future versions of this method. You can optionally pass in a null reference (Nothing in Visual Basic) for this parameter.
- value
A System.Object that represents the source array of strings to convert from.
- destinationType
A System.Type object that represents the data type to convert to. This parameter must be set to the string data type.
Return Value
A System.Object that represents a string containing a list of font names.Use the ConvertTo method to convert an array of strings containing the individual font names to a single string containing a list of the names. For example, an array that contains the strings "arial", "times new roman", and "verdana" converts to the string, "arial,times new roman,verdana". Notice that commas are automatically inserted between the font names without any white space.
Note |
|---|
| This converter can only convert to a string data type. The destinationType parameter must be set to the string data type. |
Note |
|---|
| The context and culture parameters are not used in this version of the method. It is reserved for future versions of the method. You can optionally pass in a null reference (Nothing in Visual Basic) for these parameters. |
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.
Note