[]
Inserts an item to the collection at the specified index.
public void Insert(int index, Bookmark value)
Type | Name | Description |
---|---|---|
int | index | The zero-based index at which to insert the value. |
Bookmark | value | An Bookmark item to insert. |
This example shoes how to add new bookmark at the begining of the collection
if (!bookmarkCollection.Contains(newBookmark))
{
bookmarkCollection.Insert(0,newBookmark);
int index = bookmarkCollection.IndexOf(newBookmark);//should be 0
}