public void Insert (int index, object item)
{
if (index < 0 || index > Count)
throw new ArgumentOutOfRangeException ("index");
if (item == null)
throw new ArgumentNullException ("item");
owner.BeginUpdate ();
if (owner.Sorted)
AddItem (item, false);
else
{
object_items.Insert (index, item);
//UIA Framework event: Item added
OnUIACollectionChangedEvent (new CollectionChangeEventArgs (CollectionChangeAction.Add, item));
}
owner.EndUpdate ();
// Calls UpdatedItems
}