1.DevExpress

foreach (Control cntr in this.pal_OrderType.Controls)
            {
                if (typeof(DevExpress.XtraEditors.CheckButton) == cntr.GetType())
                {
                    ((DevExpress.XtraEditors.CheckButton)cntr).Checked = false;
                }
            }

2.DevComponents

foreach (System.Windows.Forms.Control cntr in this.panelEx2.Controls)
            {
                if (cntr is DevComponents.DotNetBar.Controls.TextBoxX)
                {
                    cntr.Text = "";
                    cntr.Tag = "";
                }
            }

 

posted on 2015-07-02 15:38  清风暮雨  阅读(1293)  评论(0)    收藏  举报