Returns a value that indicates the type of element.
Return Value
Returns one of the following values:
DlxApp.ITEMID_UNKNOWN |
DlxApp.ITEMID_JOB |
DlxApp.ITEMID_PROJECT |
DlxApp.ITEMID_DOCUMENT |
DlxApp.ITEMID_FOLDER |
DlxApp.ITEMID_RECYCLEFOLDER |
DlxApp.ITEMID_SHAREDFOLDER |
DlxApp.ITEMID_ATTACHMENT |
Example
|
Copy code
|
var prj = DlxApp.GetJob().GetProject();
if (prj.IsValid())
{
var count = 0;
var items = prj.GetChildCount();
for (var index = 0; index < items; index++)
{
if (prj.GetChildItem(index).GetItemType() == DlxApp.ITEMID_DOCUMENT)
count++;
}
DlxApp.Printf("ICONINFORMATIONThe %s project includes %i documents.", prj.GetName(), count);
}
|
See also