Color Properties
The color object defines the following colors and there associated keywords:
Color Object
Transparent
Black
White
Red
Green
Blue
Cyan
Magenta
Yellow
Dark Gray
Gray
Light Gray
Keyword
color.transparent
color.black
color.white
color.red
color.green
color.blue
color.cyan
color.magenta
color.yellow
color.dkGray
color.gray
color.ltGray
Version
4.0
4.0
4.0
Example:
// This example sets the text color of the field to red
// if the value of the field is negative, else it sets it
// to black.
var f = event.target; /* field that the event occurs at */
if (event.value < 0)
f.textColor = color.red;
else
f.textColor = color.black;
Acrobat Forms - JavaScript Object Specification
18
Index Bookmark Pages Text
Previous Next
Pages: Index All Pages
This HTML file was created by VeryPDF PDF to HTML Converter product.