5.0 |
|
|
|
An array of Bookmark objects that are the children of this bookmark in the bookmark tree. If there are no children of this bookmark, this property has a value of null.
See also the parent and bookmarkRoot properties.
Array | null
R
Dump all bookmarks in the document.
function DumpBookmark(bkm, nLevel)
{
var s = "";
for (var i = 0; i < nLevel; i++) s += " ";
console.println(s + "+-" + bkm.name);
if (bkm.children != null)
for (var i = 0; i < bkm.children.length; i++)
DumpBookmark(bkm.children[i], nLevel + 1);
}
console.clear(); console.show();
console.println("Dumping all bookmarks in the document.");
DumpBookmark(this.bookmarkRoot, 0);
Specifies the color for a bookmark. Values are defined by using gray, RGB or CMYK color. See Color arrays for information on defining color arrays and how values are used with this property. See also the style property.
Array
R/W (
The following fun script colors the top-level bookmark red, green, and blue.
var bkm = this.bookmarkRoot.children[0];
bkm.color = color.black;
var C = new Array(1, 0, 0);
var run = app.setInterval(
'bkm.color = ["RGB",C[0],C[1],C[2]]; C.push(C.shift());', 1000);
var stoprun=app.setTimeOut(
"app.clearInterval(run); bkm.color=color.black",12000);
5.0 |
|
|
|
The Doc that the bookmark resides in.
Object
R
The text string for the bookmark that the user sees in the navigational panel.
String
R/W (
Put the top-level bookmark in bold.
var bkm = this.bookmarkRoot.children[0];
console.println( "Top-level bookmark name: " + bkm.name );
The example that follows the children property also uses the name property.
Determines whether the bookmark shows its children in the navigation panel (open) or whether the children subtree is collapsed (closed).
Boolean
R/W (
5.0 |
|
|
|
The parent bookmark of the bookmark or null if the bookmark is the root bookmark. See also the children and bookmarkRoot properties.
Object | null
R
Specifies the style for the bookmarkâs font: 0 is normal, 1 is italic, 2 is bold, and 3 is bold-italic. See also the color property.
Integer
R/W (
The following code puts the top-level bookmark in bold.
var bkm = this.bookmarkRoot.children[0];
bkm.style = 2;