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 小於零或大於項目的數目。

適用於