ImageList.ImageCollection.IList.Add(Object) 方法

定義

將指定的影像加入 ImageList

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
int IList.Add (object? value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add

參數

value
Object

要加入至清單的影像。

傳回

Int32

新加入影像的索引,如果無法加入影像,則為 -1。

實作

例外狀況

valuenull

value 不是 Bitmap

適用於