BookmarkCollection

BookmarkCollection

Overview

BookmarkCollection is a class in Aspose.Words FOSS for .NET. Inherits from: IEnumerable<Bookmark>.

A collection of Bookmark objects that represent the bookmarks in the specified range.

This class provides 5 methods for working with BookmarkCollection objects in .NET programs. Available methods include: Clear, GetEnumerator, Remove, RemoveAt. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Count.

Properties

NameTypeAccessDescription
CountintReadReturns the number of bookmarks in the collection.

Methods

SignatureDescription
Remove(bookmark: Bookmark)Removes the specified bookmark from the document.
Remove(bookmarkName: string)Removes a bookmark with the specified name.
RemoveAt(index: int)Removes a bookmark at the specified index.
Clear()Removes all bookmarks from this collection and from the document.
GetEnumerator()Returns an enumerator object.

See Also