I have a word document where I go through all the bookmarks. The list of range.bookmarks gives me quite some _Hlk bookmarks while I can’t find them in the file.
Very simple code to loop through the bookmarks:
foreach (Aspose.Words.Bookmark loBookMark in doc.Range.Bookmarks)
{
MessageBox.Show($"Bookmark {loBookMark.Name}");
}
Where are these bookmarks from, because I can’t find them in Word?
We’re using version 23.2304_opvragen reactie verslag.docx (118.4 KB)
@Muggsy147 Please be aware that these bookmarks are currently hidden. In MS Word application, you need to enable the option to display hidden bookmarks in order to view them:
Ok, thank you, didn’t know that.
Do you guys have a property where I can see the bookmarks are hidden ones?
@Muggsy147 Hidden bookmarks are automatically created by Word when using features like Cross-Reference to reference headings or numbered items. These bookmarks, indicated by names starting with an underscore character (_), are essential for the proper functioning of such features.
Ok, thanks, you can close this thread, all clear now
1 Like