- 7
- 0
- 约1.99万字
- 约 27页
- 2016-09-21 发布于重庆
- 举报
delphi树控件的用法
一:TreeView.Items[0].Expanded := True; // 展开第一个节点二:TreeView.Items[0].Item[0].Selected := True; // 移动到第一个节点的第一个子节点 ?找当前节点的下一个节点,按序号找如下:if treeview1.Selected.GetNextnil thentreeview1.Selected.GetNext.Selected:=true;TreeView1.SetFocus;找当前节点的下一个同层兄弟如下:if treeview1.Selected.getNextSiblingnil thentreeview1.Selected.getNextSibling.Selected:=true;TreeView1.SetFocus;TreeView.Selected.getPrevSibling ?//当前选中节点的上一个兄弟节点TreeView.Selected.Parent ? ? ? ? ?// ?当前选中节点的父节点 ?getfirstchild是跳到该节点子结点中的第一个getlastchild是跳到该节点子结点中的最后一个如果你是想跳到同层兄弟结点的第一个if treeview1.selected.parentnil thentreeview1.selec
原创力文档

文档评论(0)