c# - Get All Bookmarks from Word Document -
i've been looking around solution little while now.
i need extract bookmarks word document can manipulate them please. guess need reference them rather actual bookmarks.
what i've found far solutions need search names of bookmarks want references bookmarks. might not know names @ times. thought bookmarks calling mydocument.bookmarks
far still haven't figured out how work property.
if extract bookmarks template, names won't change. if take bookmarks unknown document, have no idea how references.
any help?
foreach (bookmark bookmark in document.bookmarks) { // whatever want bookmark. }
Comments
Post a Comment