RepositoryItemImageComboBox.AddImages(Object) Method
Adds image items to the ImageComboBoxEdit.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
imageList | Object | The image list to add to the ImageComboBoxEdit. |
Remarks
For each imageList image, this method creates a ImageComboBoxEdit item with a blank description and with an image from the RepositoryItemImageComboBox‘s RepositoryItemImageComboBox.LargeImages or RepositoryItemImageComboBox.SmallImages.
The code sample below illustrates how to add image items to an ImageComboBoxEdit.
ImageCollection imageCollection1 = new ImageCollection();
imageCollection1.AddImage(Image.FromFile("C:\\Icon1.png"));
imageCollection1.AddImage(Image.FromFile("C:\\Icon2.png"));
imageComboBoxEdit1.Properties.LargeImages = imageCollection1;
imageComboBoxEdit1.Properties.AddImages(imageCollection1);
See Also