TreeNode.CountChildren (METH) ¶ METHOD CountChildren : UDINT Get the number of children of this node. InOut: Scope Name Type Return CountChildren UDINT
TreeNode.Element (PROP) ¶ PROPERTY Element : IElement The element of the node.
TreeNode.ElementCompareTo (METH) ¶ METHOD ElementCompareTo : INT Compares this element with itfElement . Returns 0 if the elements are equal, < 0 if the element is less than itfElement , > 0 if the element is greater than itfElement . This method will be called from sorted collections (e.g. SortedList ) to sort elements. IMPORTANT: The underlying value to be compared with MUST NOT be changed during the lifecycle of the object. InOut: Scope Name Type Comment Return ElementCompareTo INT Input itfElement IElement The element to compare
TreeNode.ElementEquals (METH) ¶ METHOD ElementEquals : BOOL Returns true of this element and itfElement are equal. This method will be called from the function block HashTable to find an element by key if the hashcode of an element collides with an other element. IMPORTANT: The underlying value to be compared with MUST NOT be changed during the lifecycle of the object. InOut: Scope Name Type Comment Return ElementEquals BOOL Input itfElement IElement The element to compare
TreeNode.ElementHashCode (METH) ¶ METHOD ElementHashCode : LINT Returns the hashcode of this element. This method is used by hash based collections (e.g. Hashtable ) to get the hashcode from a element. IMPORTANT: The value of the method MUST NOT be changed during the lifecycle of the object. InOut: Scope Name Type Return ElementHashCode LINT
TreeNode.LockWaitTime (PROP) ¶ PROPERTY LockWaitTime : SYSTIME Set and get the wait time. If a call is blocked, the call is repeated after LockWaitTime . Default: 300 µs
TreeNode.MoveNode (METH) ¶ METHOD MoveNode : COLLECTION_ERROR Removes this node from the parent node and adds this node to the target node. InOut: Scope Name Type Comment Return MoveNode COLLECTION_ERROR Input itfTargetTreeNode ITreeNode The target node.
TreeNode.Parent (METH) ¶ METHOD Parent : COLLECTION_ERROR Gets the parent ITreeNode . Returns NOT_FOUND if this node is the root node. InOut: Scope Name Type Comment Return Parent COLLECTION_ERROR Output itfParent ITreeNode The parent ITreeNode
TreeNode.RemoveChild (METH) ¶ METHOD RemoveChild : COLLECTION_ERROR Removes a child element from this node. InOut: Scope Name Type Comment Return RemoveChild COLLECTION_ERROR Input itfElement IElement The element to remove
TreeNode.RootNode (METH) ¶ METHOD RootNode : COLLECTION_ERROR Get the root node. InOut: Scope Name Type Comment Return RootNode COLLECTION_ERROR Output itfRootNode ITreeNode The root node