PathSegmentCollection.Item[Int32] Właściwość

Definicja

Pobiera lub ustawia wartość PathSegment w określonym indeksie opartym na zerach.

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

Parametry

index
Int32

Indeks PathSegment obiektu na podstawie zera, który ma być pobierany lub ustawiany.

Wartość właściwości

Element w określonym indeksie.

Implementuje

Wyjątki

Parametr value ma wartość null.

index nie jest prawidłowym indeksem w obiekcie PathSegmentCollection.

Element PathSegmentCollection jest tylko do odczytu.

— lub —

Element PathSegmentCollection ma stały rozmiar.

Uwagi

W przeciwieństwie do typowych implementacji IList<T>.Item[]programu ta implementacja zgłasza błąd ArgumentException w przypadku próby wstawienia odwołania o wartości null (nic).

Dotyczy

Zobacz też