Difference between revisions of "SHIP:Sail:getChildCount"

From Serious Documentation
Jump to: navigation, search
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
{{SailFuncTableStart|}}<onlyinclude>
 
{{SailFuncTableStart|}}<onlyinclude>
|{{SailFunc|getChildCount}}||{{DataType|String}}||1||Gets a count of the total number of child {{DataType|Node}}s within an enclosing parent {{DataType|Node}}.</onlyinclude>
+
|{{SailFunc|getChildCount}}||{{DataType|String}}||style="text-align:center;"|v4.0||Gets a count of the total number of child {{DataType|Node}}s within an enclosing parent {{DataType|Node}}.</onlyinclude>
 
|}
 
|}
 
== See Also: ==
 
== See Also: ==

Revision as of 05:27, 14 July 2014

Function Returns Introduced Description
getChildCount String v4.0 Gets a count of the total number of child Nodes within an enclosing parent Node.

See Also:

Prototype

Integer getChildCount(Node parentNode);

Parameters/Return Value

Parameter Data Type Description
parentNode Reference:node The Node to look in for children
Return Integer number of direct children within the parent Node

Detailed Description

The getChildCount function returns the number of direct children within the parent.

Nodes in SHIP may have 0 or more direct child nodes. For example, a group in the resources area may have N images within the group. These children, if present, are implicitly numbered 0..(N-1) where N is the total number of children of any type within the parent Node.

Examples