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; }
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)); } }