zoukankan      html  css  js  c++  java
  • C#中获取CheckListBox选中项的值

            /// <summary>
            /// C#中获取CheckListBox选中项的值。
            /// </summary>
            /// <param name="clb">要被获取选中项的CheckListBox类型的对象。</param>
            /// <returns>返回一个ArrayList类型的对象。</returns>
            private ArrayList GetCheckedItemsText(CheckedListBox clb)
            {
                ArrayList result = new ArrayList();
                IEnumerator myEnumerator = clb.CheckedIndices.GetEnumerator();
                int index;

                while (myEnumerator.MoveNext())
                {
                    index = (int)myEnumerator.Current;
                    clb.SelectedItem = clb.Items[index];
                    result.Add(clb.Text);
                }
                return result;
            }

  • 相关阅读:
    delphi多线程加锁
    delphi中pchar、char、string的定义与区别
    delphi指针
    关于delphi函数的调用顺序问题
    easyexcel
    # springcloud-eureka-feign-mybatis-seata ### 整合步奏
    zuul网关
    ## feign远程调用开启熔断
    eureka2
    Eureka
  • 原文地址:https://www.cnblogs.com/bison1989/p/1979351.html
Copyright © 2011-2022 走看看