| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // System.Web.UI.WebControls.HorizontalAlignConverter
- //
- // Authors:
- // Gonzalo Paniagua Javier ([email protected])
- //
- // (C) 2002 Ximian, Inc (http://www.ximian.com)
- //
- using System.ComponentModel;
- using System.Globalization;
- namespace System.Web.UI.WebControls
- {
- class HorizontalAlignConverter : EnumConverter
- {
- public HorizontalAlignConverter () : base (typeof(HorizontalAlign))
- {
- }
- // The base class is enough to handle everything.
- // The methods are here just to make the class status page happy.
- // Add some optimizations?
- public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
- {
- return base.CanConvertFrom (context, sourceType);
- }
- public override object ConvertFrom (ITypeDescriptorContext context,
- CultureInfo culture,
- object value)
- {
- return base.ConvertFrom (context, culture, value);
- }
- public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
- {
- return base.CanConvertTo (context, destinationType);
- }
- public override object ConvertTo (ITypeDescriptorContext context,
- CultureInfo culture,
- object value,
- Type destinationType)
- {
- return base.ConvertTo (context, culture, value, destinationType);
- }
- }
- }
|