- po:[in] Pointer to the IVectorModel interface object.
- nIndex:[in] Indicates the zero-based index of the item to be removed from the vector model. The first item in the model is indexed by 0, the second is indexed by 1, and so on. So, if IVectorModel_DeleteAt is called with nIndex equal to 2, item 2 will be removed from the vector model, with items 3, 4, 5, etc all shifting one position lower.
int IVectorModel_DeleteAt(IVectorModel *po, uint32 nIndex);
AEE_SUCCESS - The model was able to successfully delete the desired item. AEE_EBADPARM - The requested index is not within the range of items stored in the model.
The fields of the ListModelEvent will contain the following information:
pos: The index of the item that has been deleted from the vector model oldSize: The number of items in the vector model before calling IVectorModel_DeleteAt(). newSize: The number of items in the vector model after calling IVectorModel_DeleteAt().
The vector model may define a custom free memory routine to release the memory consumed by complex items. The custom free memory routine is registered with the vector model by calling IVectorModel_SetPfnFree().