long GetBookmarkCount();
Returns the number of bookmarks.
BSTR ReadBookmarkInfo([in] long Pos, [in] boolean
NameOrValue);
Returns the name or value of the special bookmark.
Pos: The index of bookmarks in the document. From 1 to …
NameOrValue: True returns the bookmark name, False returns the bookmark value.
Example
The following java script shows how to read the bookmark information.
function Readbookmark_Example ()
{
Var count = edword.GetBookmarkCount();
For(int i=1; i<=count; i++)
{
Var name = edword.GetBookmarkInfo(i, true);
Var value = edword.GetBookmarkInfo(i, false);
}
boolean WriteBookmarkInfo([in] BSTR Name, [in] BSTR
Value);
Writes the value for the special bookmark.
Name: The bookmark name.
Value: The bookmark value.