Description
Returns the type name of the node, or 'article' if on root.
Available in Ted and in Fred.
Syntax
object.TypeName |
object
Required. Object name. Returned by the GetRootNode, GetCurNode, GetTxtNode, GetParent, GetChild functions of the object, returned by Ted.GetActiveArticle.
Remarks
Note: it is similar to Label, with the difference that Label returns the same names as you see them in the article tree, while the TypeName returns the values of name in the GN3.XML.
Example
For the type, described in schema with name "article", the below script displays "article":
If Ted.HasActiveArticle Then
dim objA = Ted.GetActiveArticle
dim objN = objA.GetCurNode
MsgBox (objN.TypeName)
End If
Context
Node object
See also
TypeContent, TypeDescription, TypeId, TypeKind, TypeLink, TypeModel, TypeName, TypeReference, TypeTextElement