PathSegmentCollection.Item[Int32] 屬性

定義

取得或設定位於指定索引的 PathSegment,此索引以零起始。

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

參數

index
Int32

以零起始的索引,屬於要取得或設定之 PathSegment 物件。

屬性值

在指定之索引處的項目。

實作

例外狀況

valuenull

index 不是 PathSegmentCollection 中的有效索引。

PathSegmentCollection 為唯讀。

-或-

PathSegmentCollection 具有固定的大小。

備註

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

適用於

另請參閱