获得第一个叶子节点 - FineUI.Tree GetFirstLeaf
2017-02-21 21:49:49 访问(1430) 赞(0) 踩(0)
/// <summary>
/// 获得第一个叶子节点 - FineUI.Tree GetFirstLeaf
/// </summary>
/// <param name="extAspNetTree"></param>
/// <returns></returns>
public static FineUI.TreeNode GetFirstLeaf(FineUI.Tree extAspNetTree)
{
if (extAspNetTree == null || extAspNetTree.Nodes.Count == 0)
return null;
FineUI.TreeNode theResult = extAspNetTree.Nodes[0];
while (true)
{
if (theResult.Nodes.Count == 0)
return theResult;
theResult = theResult.Nodes[0];
}
}
标签:
获得第一个叶子节点 - FineUI.Tree GetFirstLeaf 


上一条:
下一条:
相关评论
发表评论