Язык

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[], эта реализация создает исключение ArgumentException при попытке вставить ссылку null (Nothing).

Применяется к

См. также