假定一个树对象,并且想要以从左到右的顺序搜索它的叶子。
Suppose you have a tree object, and want to search its leaves in left-to-right order.
如图5所示,您需要得到树对象,然后使用方法中的一种以右击树的节点。
As shown in Figure 5, you need to get the tree object, and then use one of the methods to right-click a node of the tree.
清单1实例化一个默认的树查看器;您也可以定制树,并用树对象作为参数,用构造函数实例化树查看器。
Listing 1 instantiates a default tree viewer; you can also customize the tree and instantiate the tree viewer by using a constructor with a tree object as the parameter.
应用推荐