System.Windows.Forms.ImageList.ColorDepth Property

Gets the color depth of the image list.


public ColorDepth ColorDepth { set; get; }


Documentation for this section has not yet been entered.


When you set the color depth to a new value, the ImageList.Handle for the image list is recreated. Because setting the ImageList.ColorDepth property causes the handle to be recreated, you should set ImageList.ColorDepth prior to setting the ImageList.Images property. When the handle for the System.Windows.Forms.ImageList has been created, setting the ImageList.ColorDepth or ImageList.ImageSize properties in code, after setting the ImageList.Images property, will cause the collection of images set for the ImageList.Images property to be deleted.


Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0,