ImageList.Handle Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the handle of the image list object.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public IntPtr Handle { get; }

Property Value

Type: System.IntPtr

The handle for the image list. The default is null.

Exception Condition
InvalidOperationException

Creating the handle for the ImageList failed.

This corresponds to a Win32 HIMAGELIST handle. The handle is not created until you need to use it. Getting the handle causes it to be created.

.NET Framework
Available since 1.1
Return to top
Show: