The node object provides control over an individual node (element) in the article tree.
Methods and properties
Basics
Id Method | Returns the internal unique id of the node. |
IsMultiple Method | Returns true if the node is part of a sequence of multiple nodes of the same type. |
TypeName Method | Returns the type name of the node, or 'article' if on root. |
Geometry
Depth Method | Returns the justification depth of the text of the node expressed in thousandths of point. |
WordsInArea Method | Returns the estimated number of words fitting in the geometry of the text of the node. |
Parent node
GetChild Method | Returns a node object corresponding to the child of the node. |
Get text
TedText Property | Returns the text contained in the node complete with all its tags and special characters. |
Text Property | Returns the plain ASCII text contained in the node. |
Text statistics
NC Method | Returns the number of characters in the text of the node. |
NL Method | Returns the number of lines in the text of the node. |
NNP Method | Returns the number of non-fitting paragraphs in the text of the node. |
NP Method | Returns the number of paragraphs in the text of the node. |
NW Method | Returns the number of words in the text of the node. |
Depth Method | Returns the justification depth of the text of the node. |
OverH Method | Returns the overset depth of the text of the node. |
OverN Method | Returns the number of overset lines in the text of the node. |
JustErrorN Method | Returns the number of justification errors in the text of the node. |
Schema data
TypeKind Method | Returns the value of the typeKind in the GN4 schema for the given type. |
TypeLink Method | Returns the value of the typeLink in the GN4 schema for the given type. |
See also
To create a Node object