add method

This method adds a bookmark at a specified position in a document.

Defined in

Bookmarks

Syntax

public Bookmark add( String name, TextRange range )

Parameters

String name

Specifies the name of the bookmark. If a bookmark with the same name already exists, an index suffix is added after the new bookmark's name. For example, if the bookmark with name "graphic" already exists, the new bookmark's name is "graphic1".

TextRange range

Specifies the position of the bookmark to be added.

Return Value

bookmark

A Bookmark object that represents a bookmark

See examples

Example: add method