System.Web.UI.WebControls.UnitConverter Class

Converts from a System.Web.UI.WebControls.Unit object to an object of another data type and from another type to a System.Web.UI.WebControls.Unit object.

See Also: UnitConverter Members

Syntax

public class UnitConverter : System.ComponentModel.TypeConverter

Remarks

Use the System.Web.UI.WebControls.UnitConverter class to convert a System.Web.UI.WebControls.Unit to an object of another data type. You can also use the System.Web.UI.WebControls.UnitConverter class to convert an object of another data type to a System.Web.UI.WebControls.Unit.

Note:

This converter can convert only a string to System.Web.UI.WebControls.Unit and a System.Web.UI.WebControls.Unit to a string.

Note:

You should never access a type converter directly. Instead, call the appropriate converter by using System.ComponentModel.TypeDescriptor. For more information, see the examples in the System.ComponentModel.TypeConverter base class.

Requirements

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