[DEVEXPRESS/WINFORM] CheckedComboBoxEdit 클래스 : SetEditValue 메소드를 사용해 값 설정하기
DevExpress/WinForm 2020. 2. 23. 17:46■ CheckedComboBoxEdit 클래스 : SetEditValue 메소드를 사용해 값 설정하기
------------------------------------------------------------------------------------------------------------------------
▶ MainForm.cs
using System.Windows.Forms;
using DevExpress.XtraEditors;
namespace TestProject { /// <summary> /// 메인 폼 /// </summary> public partial class MainForm : XtraForm { //////////////////////////////////////////////////////////////////////////////////////////////////// Constructor ////////////////////////////////////////////////////////////////////////////////////////// Public
#region 생성자 - MainForm()
/// <summary> /// 생성자 /// </summary> public MainForm() { InitializeComponent();
string[] valueArray = new string[] { "Circle", "Rectangle", "Ellipse", "Triangle", "Square" };
foreach(string value in valueArray) { this.checkedComboBoxEdit.Properties.Items.Add(value, CheckState.Unchecked, true); }
this.checkedComboBoxEdit.Properties.SeparatorChar = ';';
this.checkedComboBoxEdit.SetEditValue("Circle; Ellipse");
this.checkedComboBoxEdit.Properties.Items["Circle"].Enabled = false; }
#endregion } }
|
------------------------------------------------------------------------------------------------------------------------
댓글을 달아 주세요