TextField

This class represents an user field in a document.

Properties

Application through getApplication

Content through getContent and setContent

Name through getName

Range through getRange

Type through getType

Value through getValue and setValue

Visible through isVisible and setVisible

Methods

remove

Creation and access
  • To get an user field in a document, use the item method in the TextFields class.
  • To create a new user field, use the add method in the TextFields class.

Usage

The value of an user field can be a string value or a double value. The property Content is used to set the string value for an user field. The property Value is used to set the double value for an user field. The value for the Content property and Value property can overwrite each other's value.
  • When you set the value for the Content property, the value of the Value property is the numeric conversion value of the Content property's value.
  • When you set the value for the Value property, the value of the Content property is the string conversion value of the Value property's value.
For example, if we set the Content property's value as Test, the Value property's value is 0; if we set the Value property's value as 26.7, the Content property's value is 26.7.
See examples

Example: TextFields