ItemCollection.Insert(Int32, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inserts an element into the collection at the specified index.
public:
virtual void Insert(int insertIndex, System::Object ^ insertItem);
public void Insert (int insertIndex, object insertItem);
abstract member Insert : int * obj -> unit
override this.Insert : int * obj -> unit
Public Sub Insert (insertIndex As Integer, insertItem As Object)
Parameters
- insertIndex
- Int32
The zero-based index at which to insert the item.
- insertItem
- Object
The item to insert.
Implements
Exceptions
The collection is in ItemsSource mode.
The index is out of range.
Remarks
All items after the specified position are moved down by one.
Applies to
Col·laboreu amb nosaltres a GitHub
La font d'aquest contingut es pot trobar al GitHub, on també podeu crear i revisar problemes i sol·licituds d'extracció. Per obtenir més informació, consulteu la nostra guia per a col·laboradors.