ListBox.IntegerCollection.Item[Int32] 屬性

定義

取得或設定位於指定索引處的專案。

public:
 property int default[int] { int get(int index); void set(int index, int value); };
public int this[int index] { get; set; }
member this.Item(int) : int with get, set
Default Public Property Item(index As Integer) As Integer

參數

index
Int32

元素在集合中的位置。

屬性值

位於指定索引的元素。

例外狀況

.NET 5 及以後:index 超出範圍。

適用於