DoubleCollection.Item[Int32] 屬性

定義

取得或設定位於指定索引的 Double,此索引以零起始。Gets or sets the Double at the specified zero-based index.

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

參數

index
Int32

要取得或設定的 Double 值的以零起始的索引。The zero-based index of the Double value to get or set.

屬性值

指定索引處的 DoubleThe Double at the specified index.

實作

例外狀況

index 不是 DoubleCollection 中的有效索引。index is not a valid index in the DoubleCollection.

DoubleCollection 是唯讀的。The DoubleCollection is read-only.

-或--or- DoubleCollection 具有固定的大小。The DoubleCollection has a fixed size.

適用於

另請參閱