ImageList.ImageCollection.IList.Item[Int32] 屬性

定義

在現有的 ImageList.ImageCollection 中,取得或設定影像。

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
object System.Collections.IList.Item[int index] { get; set; }
object? System.Collections.IList.Item[int index] { get; set; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property Item(index As Integer) As Object Implements IList.Item

參數

index
Int32

要取得或設定的影像之以零起始的索引。

屬性值

Object

索引所指定清單中的影像。

實作

例外狀況

索引小於 0 或者大於或等於 Count

嘗試取代影像失敗。

要指派的影像是 null 或者不是點陣圖。

適用於