트리 » Api
  
getparentitem
  
Description
지정한 아이템의 부모 아이템을 가져오는 API이다.
  
  
Parameters
  
    
      | Parameters | 
      Type | 
      Description | 
    
  
  
        
    
        | lItem | 
        long | 
 	트리 아이템 | 
      
  
  
Return Value
  
    
      | Type | 
      Description | 
    
  
  
    
      | long | 
      부모 아이템 | 
    
  
Example
function btn_getparentitem_on_mouseup()
{
    screen.alert(trTest.getitemtext(trTest.getparentitem(trTest.getselecteditem())));
}
function btn_insertitem_on_mouseup()
{
	trTest.insertitem("parent", 0, 1, trTest.getrootitem());
	trTest.insertitem("child", 0, 1, trTest.getfirstvisibleitem());
}
  
See Also
getparentitemex
getchilditem
getrootitem
  
Viewer Ver.
9.1.1.1
  
Update Date
 20110412