A collection of Bookmark objects that represent the bookmarks in the specified range.
Shows how to add bookmarks and update their contents.
#include <Aspose.Words.Cpp/BookmarkCollection.h>
Public Member Functions | |
void | Clear () |
Removes all bookmarks from this collection and from the document. More... | |
int32_t | get_Count () |
Returns the number of bookmarks in the collection. More... | |
SharedPtr< IEnumerator< SharedPtr< Bookmark > > > | GetEnumerator () override |
Returns an enumerator object. More... | |
virtual const TypeInfo & | GetType () const override |
SharedPtr< Bookmark > | idx_get (int32_t index) |
Returns a bookmark at the specified index. More... | |
SharedPtr< Bookmark > | idx_get (String bookmarkName) |
Returns a bookmark by name. More... | |
virtual bool | Is (const TypeInfo &target) const override |
void | Remove (SharedPtr< Bookmark > bookmark) |
Removes the specified bookmark from the document. More... | |
void | Remove (String bookmarkName) |
Removes a bookmark with the specified name. More... | |
void | RemoveAt (int32_t index) |
Removes a bookmark at the specified index. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
void Aspose::Words::BookmarkCollection::Clear | ( | ) |
Removes all bookmarks from this collection and from the document.
Shows how to remove bookmarks from a document.
int32_t Aspose::Words::BookmarkCollection::get_Count | ( | ) |
Returns the number of bookmarks in the collection.
Shows how to remove bookmarks from a document.
|
override |
Returns an enumerator object.
Shows how to add bookmarks and update their contents.
|
overridevirtual |
Reimplemented from System::Object.
System::SharedPtr<Aspose::Words::Bookmark> Aspose::Words::BookmarkCollection::idx_get | ( | int32_t | index | ) |
Returns a bookmark at the specified index.
The index is zero-based.
Negative indexes are allowed and indicate access from the back of the collection. For example -1 means the last item, -2 means the second before last and so on.
If index is greater than or equal to the number of items in the list, this returns a null reference.
If index is negative and its absolute value is greater than the number of items in the list, this returns a null reference.
index | An index into the collection. |
Shows how to add bookmarks and update their contents.
System::SharedPtr<Aspose::Words::Bookmark> Aspose::Words::BookmarkCollection::idx_get | ( | System::String | bookmarkName | ) |
Returns a bookmark by name.
Returns null if the bookmark with the specified name cannot be found.
bookmarkName | Case-insensitive name of the bookmark. |
Shows how to add bookmarks and update their contents.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::BookmarkCollection::Remove | ( | System::SharedPtr< Aspose::Words::Bookmark > | bookmark | ) |
Removes the specified bookmark from the document.
bookmark | The bookmark to remove. |
Shows how to remove bookmarks from a document.
void Aspose::Words::BookmarkCollection::Remove | ( | System::String | bookmarkName | ) |
Removes a bookmark with the specified name.
bookmarkName | The case-insensitive name of the bookmark to remove. |
Shows how to remove bookmarks from a document.
void Aspose::Words::BookmarkCollection::RemoveAt | ( | int32_t | index | ) |
Removes a bookmark at the specified index.
index | The zero-based index of the bookmark to remove. |
Shows how to remove bookmarks from a document.
|
static |