[]
Represents a collection of Bookmark elements.
public class BookmarkCollection : ContentRangeCollection<Bookmark>, IContentList<Bookmark>, IReadOnlyList<Bookmark>, IReadOnlyCollection<Bookmark>, IEnumerable<Bookmark>, IEnumerable
Gets a bookmark from the collection by its name.
public Bookmark this[string name] { get; }
name stringThe bookmark name.
Raises when the bookmark with specified name not found in the collection.
public Bookmark Add(string name)
name stringThe new bookmark name.
Gets whether the collection contains a bookmark with specified name.
public bool Contains(string name)
name stringThe bookmark name to find.
true if the collection contains a bookmark with specified name, otherwise false.
Inserts a Bookmark into the collection at the specified position.
public Bookmark Insert(string name, RangeLocation location)
name stringThe new bookmark name.
location RangeLocationA RangeLocation for insertion.
Gets a bookmark from the collection by its name.
public bool TryGetValue(string name, out Bookmark bookmark)
name stringThe bookmark name.
bookmark BookmarkWhen this method returns, contains the bookmark with the specified name, if the key is found, otherwise null.
true if the bookmark with the specified name is found, otherwise false.