PointCollection.Insert(Int32, Point) Метод
Определение
Вставляет Point в PointCollection по указанному индексу.Inserts a Point into the PointCollection at the specified index.
public:
virtual void Insert(int index, System::Windows::Point value);
public void Insert (int index, System.Windows.Point value);
abstract member Insert : int * System.Windows.Point -> unit
override this.Insert : int * System.Windows.Point -> unit
Public Sub Insert (index As Integer, value As Point)
Параметры
- index
- Int32
Отсчитываемый от нуля индекс, по которому следует вставить элемент value
.The zero-based index at which value
should be inserted.
- value
- Point
Объект Point, вставляемый в PointCollection.The Point to insert into the PointCollection.
Реализации
Исключения
value
имеет значение null
.value
is null
.
index
не является допустимым индексом в PointCollection.index
is not a valid index in the PointCollection.
Объект PointCollection доступен только для чтения.The PointCollection is read-only.
-или--or- PointCollection имеет фиксированный размер.The PointCollection has a fixed size.
Комментарии
В отличие от типовых реализаций IList<T>.Insert , эта реализация создает исключение ArgumentException при попытке вставить ссылку null (Nothing).Unlike typical implementations of IList<T>.Insert, this implementation throws an ArgumentException if you attempt to insert a null (Nothing) reference.