System.Web.UI.WebControls.FontNamesConverter.ConvertTo Method

Creates a string that represents a list of font names from an array of strings containing individual font names.

Syntax

public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)

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 null 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 null for this parameter.
value
An object that represents the source array of strings to convert from.
destinationType
A object instance object that represents the data type to convert to. This parameter must be of type string.

Returns

A object instance that represents a string containing a list of font names.

Remarks

Use the FontNamesConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object, Type) 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 convert only to a string data type. The destinationType parameter must be of type string.

Note:

The context and culture parameters are not used in this version of the method; they are reserved for future versions of the method. You can optionally pass in null for these parameters.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0