DekGenius.com
[ Team LiB ] Previous Section Next Section

ImageIndexConverter

System.Windows.Forms (system.windows.forms.dll)class

This class is a type converter for image index values. You need a special type converter for these despite the fact that they are just integers, because it needs to be able to support a None value. Typically these are used in Control classes that need to specify the index into an image list for a part of their imagery.

You would not normally need to use this class yourself, as it is to support serialization and design-time scenarios.

public class ImageIndexConverter : System.ComponentModel.Int32Converter {
// Public Constructors
   public ImageIndexConverter();
// Protected Instance Properties
   protected virtual bool IncludeNoneAsStandardValue{get; }
// Public Instance Methods
   public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext context,
        System.Globalization.CultureInfo culture, object value);  // overrides System.ComponentModel.BaseNumberConverter
   public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, 
        System.Globalization.CultureInfo culture, object value, 
        Type destinationType);  // overrides System.ComponentModel.BaseNumberConverter
   public override StandardValuesCollection GetStandardValues( 
        System.ComponentModel.ITypeDescriptorContext context);  // overrides System.ComponentModel.TypeConverter
   public override bool GetStandardValuesExclusive(
        System.ComponentModel.ITypeDescriptorContext context);  // overrides System.ComponentModel.TypeConverter
   public override bool GetStandardValuesSupported(
        System.ComponentModel.ITypeDescriptorContext context);  // overrides System.ComponentModel.TypeConverter
}

Hierarchy

System.Object System.ComponentModel.TypeConverter System.ComponentModel.BaseNumberConverter System.ComponentModel.Int32Converter ImageIndexConverter

Subclasses

TreeViewImageIndexConverter

    [ Team LiB ] Previous Section Next Section