delphi树控件的用法.docVIP

  • 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 then treeview1.Selected.GetNext.Selected:=true; TreeView1.SetFocus; 找当前节点的下一个同层兄弟如下: if treeview1.Selected.getNextSiblingnil then treeview1.Selected.getNextSibling.Selected:=true; TreeView1.SetFocus; TreeView.Selected.getPrevSibling ?//当前选中节点的上一个兄弟节点 TreeView.Selected.Parent ? ? ? ? ?// ?当前选中节点的父节点 ? getfirstchild是跳到该节点子结点中的第一个 getlastchild是跳到该节点子结点中的最后一个 如果你是想跳到同层兄弟结点的第一个 if treeview1.selected.parentnil then treeview1.selec

文档评论(0)

1亿VIP精品文档

相关文档