語言

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 零基索引。

屬性值

該項目位於指定索引。

實作

例外狀況

value 是 null。

index 在 中 不是有效的索引 PathSegmentCollection。

這是 PathSegmentCollection 唯讀的。

-或-

它 PathSegmentCollection 有固定尺寸。

備註

與典型的 實IList<T>.Item[]作不同,這個實作會在你嘗試插入ArgumentExceptionNothing)參考時拋出 。

適用於

另請參閱