Aspose.Words - Working with Bookmarks

Set Bookmark
builder.startBookmark("AsposeBookmark");
builder.writeln("Text inside a bookmark.");
builder.endBookmark("AsposeBookmark");

Get Bookmark
// By index.
Bookmark bookmark1 = doc.getRange().getBookmarks().get(0);

// By name.
Bookmark bookmark2 = doc.getRange().getBookmarks().get("AsposeBookmark");


Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Jul 8, 2014 at 11:13 AM by shoaibkhan, version 1