DEV ImageComboxEdit 使用
//图片容器 DevExpress.Utils.ImageCollection imageCollection = new DevExpress.Utils.ImageCollection(); imageCollection.AddImage(Properties.Resources.apply_32x32); imageCollection.AddImage(Properties.Resour
·
//图片容器
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));
更多推荐
已为社区贡献1条内容
所有评论(0)