method getChildIndex

int32 getChildIndex(box child);

Argumente

Zurückgegebener Wert

This method returns the index of a given child box. If an index for the given box can not be found -1 is returned.
function VerifyChildBox(parBox, childBox)
{
    var isChild = false;
    if (parBox && childBox)
    {
        isChild = (parBox.getChildIndex(childBox) != -1);
    }
    return isChild;
}