VAR MyTreeNode,FindTreNode:TTreeNode;
i:integer;
begin
MytreeNode:=treeView节点的名称
for I:=0 to MytreeNode.count do
begin
if MytreeNode.Item.Text=Edit.text then
begin
FindTreNode:=MytreeNode.Item;
break;
end;
///添加FindTreNode子目录
treeView1.Items.AddChild(FindTreNode,添加子节点名称);
///添加FindTreNode子目录
treeView1.Items.Add(FindTreNode,添加同级节点名称);
FindTreNode.
end;