NumOfChildren method
The NumOfChildren method returns the number of child objects that is associated with the runtime DCO object.
Syntax
- VBScript
oDCO.NumOfChildren as Long
- C#
int NumOfChildren()
Arguments
NoneReturns
The number of child objects that is associated with this object.Applies to
All objectsVBScript Example
Dim CntPgChildren
CntPgChildren = oDCO.NumOfChildren
msgbox "Page 1 has " & CntPgChildren & " children"
C# Example
This example returns the number of fields on page TM000001.int nNumFields = m_oDCO.FindChild("TM000001").NumOfChildren();