Поделиться через


ToolCommandBindingCollection.InsertItem - метод

Обновлен: Ноябрь 2007

Вставляет элемент в коллекцию.

Пространство имен:  Microsoft.Windows.Design.Interaction
Сборка:  Microsoft.Windows.Design.Interaction (в Microsoft.Windows.Design.Interaction.dll)

Синтаксис

'Декларация
Protected Overrides Sub InsertItem ( _
    index As Integer, _
    item As ToolCommandBinding _
)
'Применение
Dim index As Integer
Dim item As ToolCommandBinding

Me.InsertItem(index, item)
protected override void InsertItem(
    int index,
    ToolCommandBinding item
)
protected:
virtual void InsertItem(
    int index, 
    ToolCommandBinding^ item
) override
protected override function InsertItem(
    index : int, 
    item : ToolCommandBinding
)

Параметры

  • index
    Тип: System.Int32
    Индекс места добавления элемента.

Исключения

Исключение Условие
ArgumentNullException

Параметр item имеет значение nullссылка null (Nothing в Visual Basic).

Заметки

Этот метод следит за тем, чтобы в коллекцию не попадали элементы nullссылка null (Nothing в Visual Basic).

Разрешения

См. также

Ссылки

ToolCommandBindingCollection Класс

ToolCommandBindingCollection - члены

Microsoft.Windows.Design.Interaction - пространство имен

Другие ресурсы

Расширяемость среды конструктора WPF

Архитектура средства