An NDoc Documented Class Library

ImageIndexEditor Class

The ImageIndexEditor is a UITypeEditor that provides design time support for displaying a drop down list of images in the property window. It is most commonly used with an ImageIndex property so that a user can selected the image they want, rather than being forced to remember the location of the image in an image list. It provides exactly the same functionaly that is available on the ImageIndex property of a button control. Thanks must goto Brian Ingenito(USPC.PCT.Hopewell) who pointed me in the direction of Microsoft's ImageIndexEditor which has been made private.

For a list of all members of this type, see ImageIndexEditor Members.

System.Object
   UITypeEditor
      ImageIndexEditor

public class ImageIndexEditor : UITypeEditor

Example

To use this image index editor you must have a property that has type of imagelist. It doesn't have to be a property called imagelist, it just has to return a type of imagelist. Also, on the property that you want to display images as an image index you must add the following attributes [TypeConverter(typeof(ImageIndexConverter)), Editor(typeof(Genghis.Windows.Forms.Design.ImageIndexEditor),typeof(System.Drawing.Desgin.UITypeEditor))]

Requirements

Namespace: Genghis.Windows.Forms.Design Namespace

Assembly: Genghis.dll

See Also

ImageIndexEditor Members | Genghis.Windows.Forms.Design Namespace