ImageList.Handle 属性

定义

获取图像列表对象的句柄。Gets the handle of the image list object.

public:
 property IntPtr Handle { IntPtr get(); };
[System.ComponentModel.Browsable(false)]
public IntPtr Handle { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Handle : nativeint
Public ReadOnly Property Handle As IntPtr

属性值

IntPtr

图像列表的句柄。The handle for the image list. 默认为 nullThe default is null.

属性

例外

ImageList 创建句柄失败。Creating the handle for the ImageList failed.

注解

这对应于 Win32 HIMAGELIST 句柄。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.

适用于