PointCollection.Item[Int32] 屬性

定義

取得或設定在指定索引處的 Point

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

參數

index
Int32

要取得或設定的 Point 的以零起始的索引。

屬性值

指定之索引處的 Point

實作

例外狀況

valuenull

index 不是 PointCollection 中的有效索引。

PointCollection 為唯讀。

-或-

PointCollection 具有固定的大小。

備註

不同于 的一般實作,如果您嘗試插入Null (Nothing) 參考,這個實作 IList<T>.Item[]ArgumentException 擲回 。

適用於

另請參閱