DekGenius.com
[ Team LiB ] Previous Section Next Section

EnumConverter

System.ComponentModel (system.dll)class

This TypeConverter class is used to transform to and from enumerations. It is used in design-time and serialization scenarios, and should not normally be called from your own code.

public class EnumConverter : TypeConverter {
// Public Constructors
   public EnumConverter(Type type);
// Protected Instance Properties
   protected virtual IComparer Comparer{get; }
   protected Type EnumType{get; }
   protected StandardValuesCollection Values{set; get; }
// Public Instance Methods
   public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType);  // overrides TypeConverter
   public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType);  // overrides TypeConverter
   public override object ConvertFrom(ITypeDescriptorContext context, 
        System.Globalization.CultureInfo culture, object value);  // overrides TypeConverter
   public override object ConvertTo(ITypeDescriptorContext context, 
        System.Globalization.CultureInfo culture, object value, Type destinationType);  // overrides TypeConverter
   public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context);  // overrides TypeConverter
   public override bool GetStandardValuesExclusive(ITypeDescriptorContext context);  // overrides TypeConverter
   public override bool GetStandardValuesSupported(ITypeDescriptorContext context);  // overrides TypeConverter
   public override bool IsValid(ITypeDescriptorContext context, object value);  // overrides TypeConverter
}

Hierarchy

System.Object TypeConverter EnumConverter

Subclasses

System.Drawing.FontUnitConverter

    [ Team LiB ] Previous Section Next Section