Returns a value that indicates the type of element.

syntaxSyntax:
DlxItem.GetItemType()

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 codeCopy 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