zoukankan      html  css  js  c++  java
  • 递归选中treeview 树节点的值

     /// <summary>
            /// 选中treeview的某个节点,需要每个node的value不同
            /// </summary>
            /// <param name="sNodeValue"></param>
            private void selectNode(TreeNodeCollection tns, string sNodeValue)
            {
                foreach (TreeNode tRoot in tns)
                {
                    if (tRoot.Value == sNodeValue)
                    {
                        tRoot.Checked=true;
                        return;
                    }
                    if (tRoot.ChildNodes != null)
                    {
                        selectNode(tRoot.ChildNodes, sNodeValue);
                    }
                }
            }
  • 相关阅读:
    稠密光流
    分水岭分割
    Haar小波分析
    内积空间
    矩阵LU分解
    opencv笔记---contours
    Deformable Templates For Eye Detection
    最小二乘法
    字符集及编码
    层次聚类
  • 原文地址:https://www.cnblogs.com/wanyuan8/p/2526218.html
Copyright © 2011-2022 走看看