FairyGUI.TreeView.GetSelection C# (CSharp) Method

GetSelection() public method

public GetSelection ( ) : List
return List
        public List<TreeNode> GetSelection()
        {
            List<int> sels = list.GetSelection();
            int cnt = sels.Count;
            List<TreeNode> ret = new List<TreeNode>();
            for (int i = 0; i < cnt; i++)
            {
                TreeNode node = (TreeNode)list.GetChildAt(sels[i]).data;
                ret.Add(node);
            }
            return ret;
        }

Usage Example

 static public int GetSelection(IntPtr l)
 {
     try {
         FairyGUI.TreeView self = (FairyGUI.TreeView)checkSelf(l);
         var ret = self.GetSelection();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.TreeView::GetSelection