Returns the object corresponding to the parent item.

syntaxSyntax:
DlxItem.GetParent()

Return Value

Returns the object corresponding to the parent of this item. Call the IsValid() method to determine if the object is valid.

Example

  Copy codeCopy code
var prj = DlxApp.GetJob().GetProject();
var items = prj.GetChildCount();
for (var index = 0; index < items; index++)
{
  DlxApp.Trace("Parent of %s is %s", prj.GetChildItem(index).GetName(), prj.GetChildItem(index).GetParent().GetName());
}

See also