3.15 CheckedListBoxControl控件
该控件以列表框的形式显示复选列表;
效果如图:
示例代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
namespace DXApplication_1
{
public partial class CheckedListBoxControlForm : DevExpress.XtraEditors.XtraForm
{
public CheckedListBoxControlForm()
{
InitializeComponent();
}
private void CheckedListBoxControlForm_Load(object sender, EventArgs e)
{
CheckedListBoxItem[] itemArr = {
new CheckedListBoxItem("January",false),
new CheckedListBoxItem("February", false),