Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To Delete Row By Bookmark using Aspose.Words Java for Jython. Here you can see sample code.
Jython Code
def delete_row_by_bookmark(self, doc, bookmarkName):
# Find the bookmark in the document. Exit if cannot find it.
bookmark = doc.getRange().getBookmarks().get(bookmarkName)
if bookmark is None:
return
# Get the parent row of the bookmark. Exit if the bookmark is not in a row.
row = bookmark.getBookmarkStart().getAncestor(Row)
if row is None:
return
# Remove the row.
row.remove()
Download running code from any of the below mentioned social coding sites:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.