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 固定大小。

注解

与典型的实现不同,如果尝试插入 IList<T>.Item[]ArgumentException) 引用,则此实现将引发此实现。

适用于

另请参阅