GetRootNode Method (Article)

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 17:07

Description

Return a node object corresponding to the root element of the article - i.e. the whole article.

Available in Ted and Fred.

Syntax

dim objNode = object.GetRootNode

object

Required. Object name. Returned by Ted.GetActiveArticle.

Example

This script returns the root node object.

If Ted.HasActiveArticle Then

dim objArticle = Ted.GetActiveArticle

dim objNode = objArticle.GetRootNode

End If

 

This script selects the root node object.

If Ted.HasActiveArticle Then

dim objArticle = Ted.GetActiveArticle

 objArticle.SelNode (objArticle.GetRootNode)

End If  

Context

Article object

See also

GetTxtNode, GetCurNode, GetParent