BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi
Chris,
Thank
you for your interest in Syncfusion products.
Kindly
use the below code snippet to delete the bookmark contents.
BookmarksNavigator bn = new BookmarksNavigator(document);
//Moves
to the bookmark
bn.MoveToBookmark("Bookmark1");
//Deleting
bookmark contents
bn.DeleteBookmarkContent(false, true);
Please
let us know if you have any other questions.
Regards,
Sathish
Hi Satish,
I don't think you understood my question. :)
I don't want to delete the bookmark content, I just wish to remove the actual bookmark itself. Similar to how you do it in word. e.g. Using the "Delete" button from the Bookmarks dialog to remove it from the list.
Regards
Chris
Hi
Chris,
Thank
you for your update.
Kindly
use the below code snippet to delete a bookmark from the input Word document.
//Finds
the bookmark by name
Bookmark bookMark = document.Bookmarks.FindByName("BookMarkName");
//Deletes
the bookmark
document.Bookmarks.Remove(bookMark);
Please
let us know if you have any other questions.
Regards,
Sathish
Hi Chris,
Thank
you for your update.
Please
let us know if you have any other questions. We will be happy to assist you as
always.
Please
let us know if you have any other questions.
Regards,
Sathish