ModelItemCollection.Insert Method (Int32, Object)
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 Function Insert ( _
index As Integer, _
value As Object _
) As ModelItem
public abstract ModelItem Insert(
int index,
Object value
)
public:
virtual ModelItem^ Insert(
int index,
Object^ value
) abstract
abstract Insert :
index:int *
value:Object -> ModelItem
public abstract function Insert(
index : int,
value : Object
) : ModelItem
Parameters
- index
Type: System.Int32
The index for the item to be inserted.
- value
Type: System.Object
A object to be inserted at the specified index.
Return Value
Type: Microsoft.Windows.Design.Model.ModelItem
A ModelItem representing the value.
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