Aspose::Words::BookmarkCollection::idx_get method

BookmarkCollection::idx_get(const System::String&) method

Returns a bookmark by name.

System::SharedPtr<Aspose::Words::Bookmark> Aspose::Words::BookmarkCollection::idx_get(const System::String &bookmarkName)
ParameterTypeDescription
bookmarkNameconst System::String&Case-insensitive name of the bookmark.

Remarks

Returns null if the bookmark with the specified name cannot be found.

See Also

BookmarkCollection::idx_get(int32_t) method

Returns a bookmark at the specified index.

System::SharedPtr<Aspose::Words::Bookmark> Aspose::Words::BookmarkCollection::idx_get(int32_t index)
ParameterTypeDescription
indexint32_tAn index into the collection.

Remarks

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.

See Also