ModelItemCollection.Insert Method (Int32, ModelItem)
When overridden in a derived class, inserts an item at the specified location.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Sub Insert ( _
index As Integer, _
item As ModelItem _
)
public abstract void Insert(
int index,
ModelItem item
)
public:
virtual void Insert(
int index,
ModelItem^ item
) abstract
abstract Insert :
index:int *
item:ModelItem -> unit
public abstract function Insert(
index : int,
item : ModelItem
)
Parameters
- index
Type: System.Int32
The index for the item to be inserted.
- item
Type: Microsoft.Windows.Design.Model.ModelItem
A ModelItem to be inserted at the specified index.
Implements
Remarks
If index is equal to Count, this method will insert the item at the end. If index is zero, this method will insert the item at the beginning.
To move an item, use the Move method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Model Namespace