The DocumentTarget object represents a text position in a Text Control document that is a target of a document link.

Syntax

DocumentTarget

Introduced: X18.

Methods

Method Description
getDeleteable Gets whether a document target can be deleted by the end-user while a TX Text Control document is being edited.
getID Gets an identifier for a document target.
getName Relates a user-defined name to a document target.
getNumber Gets the one-based number of the document target in the document.
getStart Gets the first character position (one-based) of a document target.
getTargetName Gets the name of the document target.
scrollTo Sets the current input position to the beginning of the document target and scrolls it into the visible part of the document.
setDeleteable Sets whether a document target can be deleted by the end-user while a TX Text Control document is being edited.
setID Sets an identifier for the document target.
setName Sets the name of a document target.
setTargetName Sets the name of the document target.

Further Reading

Learn more about the Javascript: DocumentTarget Object in the Text Control Blog: