Tree-AddSibling

Function Name dcl-Tree-AddSibling
Syntax   (dcl-Tree-AddSibling <CONTROL> SiblingItem [as Handle or String] {InsertBefore [as Boolean]} Label [as String] {Key [as String]} {ImageIndex [as Integer]} {SelectedImageIndex [as Integer]} {ExpandedImageIndex [as Integer]})
Return Type Handle
Applies To Tree

此方法在由SiblingItem指定的项目之后(并处于相同级别)添加一个新项目。 如果InsertBefore为T,则在指定项目之前插入新项目。 Label是新项目的标签文本。 如果指定了Key,它必须是用于标识新项目的唯一(对于树控件实例)字符串键。 三个可选的ImageIndex参数是来自控件图像列表的图像,分别在项目处于正常,选定或展开状态时显示。 返回值是新项的唯一句柄。