//图片容器
DevExpress.Utils.ImageCollection imageCollection = new DevExpress.Utils.ImageCollection();
imageCollection.AddImage(Properties.Resources.apply_32x32);
imageCollection.AddImage(Properties.Resources.cancel_32x32);
repositoryItemImageComboBox1.SmallImages = imageCollection; repositoryItemImageComboBox1.Items.Clear(); //添加下拉选项(-1则不显示图片0、1分别是加入图片的索引)
repositoryItemImageComboBox1.Items.Add(new DevExpress.XtraEditors.Controls.ImageComboBoxItem(Resources.Multilingual.String["等待下达"], 0, -1)); repositoryItemImageComboBox1.Items.Add(new DevExpress.XtraEditors.Controls.ImageComboBoxItem(Resources.Multilingual.String["成功"], 1, 0)); repositoryItemImageComboBox1.Items.Add(new DevExpress.XtraEditors.Controls.ImageComboBoxItem(Resources.Multilingual.String["失败"], 2, 1));
DEV ImageComboxEdit 使用
最新推荐文章于 2024-03-23 14:30:59 发布