function AddNode(Node, Relative: TTreeNode; const S: string; Ptr: Pointer; Method: TNodeAttachMode): TTreeNode
那位朋友能详细介绍一下AddNode的说明
那位朋友能详细介绍一下AddNode的说明
解决方案 »
- Update语句在Access中执行成功,怎样获取成功Update了哪些记录及记录数?Sql server下可用Trigger完成!
- delphi高手请进...
- 新手提问:请问如何将程序最小化后只出现在右下角的任务栏?即任务栏程序
- 新手的基础问题(文件属性)加急!!~~~
- 请问Virtual PC的原理
- 在个公司一年多了!,工资还是一年前的700,我不想干了!因为穷!我不得不选择离开了!
- Asp如何调用Delphi写的dll?望各位大侠赐教
- 怎样向指定的文件写记录,查找记录?
- 请教!如何根据姓名的每一个字的第一个字母来查询?
- 如何改变默认目录
- UDP通信,如何判断一个是否已经被其他程序占用
- 批量提交insert语句总是提示出错,代码见内,请帮忙分析下
用AddObject
DELPHI中有帮助
Description
描述:
AddNode adds a node object to the collection. AddNode returns the newly-added node, and takes the following parameters.
函数AddNode增加一个node到TreeNodes, 返回新增的node, 需要以下的参数:
Node is the node object to be added. If Node is nil, then the tree view's CreateNode method is called to provide one.
参数Node是被增加的函数,如果Node是nil,TreeView会自动创建一个
The Relative and Method parameters together define the location of the new node. Relative is an existing node that will be either parent or sibling to the new node. Method specifies the precise relationship between the new node and relative, as given by a TNodeAttachMode constant.
参数Relative和Method一起指定了新节点的位置,其中Relative(亲戚节点)是已经存在的节点,它将成为新节点的父节点或者兄弟节点;Method进一步确定新节点和Relative的关系,由类型为TNodeAttachMode的常数确定。
The S parameter specifies the Text property of the new node.
参数S指定新节点的Text属性
The Ptr parameter specifies the Data property value of the new node.
参数Ptr指定新节点的Data属性
function Add(Node: TTreeNode; const S: string): TTreeNode;
也可以的