ImageList.Handle 屬性

定義

取得影像清單物件的控制代碼。Gets the handle of the image list object.

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

適用於