int IList.Add (object item)
{
int result;
ListViewItem li;
if (owner != null && owner.VirtualMode)
throw new InvalidOperationException ();
if (item is ListViewItem) {
li = (ListViewItem) item;
if (list.Contains (li))
throw new ArgumentException ("An item cannot be added more than once. To add an item again, you need to clone it.", "item");
if (li.ListView != null && li.ListView != owner)
throw new ArgumentException ("Cannot add or insert the item '" + li.Text + "' in more than one place. You must first remove it from its current location or clone it.", "item");
}
else
li = new ListViewItem (item.ToString ());
li.Owner = owner;
result = list.Add (li);
CollectionChanged (true);
//UIA Framework event: Item Added
OnUIACollectionChangedEvent (new CollectionChangeEventArgs (CollectionChangeAction.Add, li));
return result;
}