Returns the object corresponding to the parent item.
Syntax: |
---|
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 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());
}
|