
ValidatedControlConverter | 893
WebControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ System.ComponentModel.TypeConverter ➝ UnitConverter
UnitType
System.Web.UI.WebControls (system.web.dll)
serializable
enum
This enumeration is used to support different measurement units, which are used for
setting various properties in controls, including WebControl.Height, WebControl.Width, and Unit.
A Point is a unit of measurement that represents 1/72 of an inch. A Pica is equivalent to
12 points. The Percentage value is relative to the parent element. An Em is relative to the
height of a parent element’s font (so 2em specifies a font size that is twice as large as
that of the parent). An Ex is relative to the height of the lowercase letter “x” of the
parent element’s font.
Hierarchy
System.Object ➝ System.ValueType ➝ System.Enum(System.IComparable, System.IFor-
mattable, System.IConvertible)
➝ UnitType
Returned By
Unit.Type
Passed To
Unit.Unit( )
ValidatedControlConverter
System.Web.UI.WebControls (system.web.dll)
class
This class is used to provide a list of validatable controls in the property browser. It
allows you to set properties like CompareValidator.ControlToValidate at design time.
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context,
System.Globalization.CultureInfo ...