Share via


ToolCommandBindingCollection.InsertItem Method

Inserts an item in to the collection.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Protected Overrides Sub InsertItem ( _
    index As Integer, _
    item As ToolCommandBinding _
)
protected override void InsertItem(
    int index,
    ToolCommandBinding item
)
protected:
virtual void InsertItem(
    int index, 
    ToolCommandBinding^ item
) override
abstract InsertItem : 
        index:int * 
        item:ToolCommandBinding -> unit 
override InsertItem : 
        index:int * 
        item:ToolCommandBinding -> unit 
protected override function InsertItem(
    index : int, 
    item : ToolCommandBinding
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

item is nulla null reference (Nothing in Visual Basic).

Remarks

This method validates that nulla null reference (Nothing in Visual Basic) items are not added to the collection.

.NET Framework Security

See Also

Reference

ToolCommandBindingCollection Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

WPF Designer Extensibility

Tool Architecture