語言

Vector2.Item[Int32] 屬性

定義

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

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

參數

index
Int32

要取得或設定的元素的索引。

屬性值

元素位於 index。

例外狀況

index 小於零或大於元素數。

適用於