Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemImageComboBox.AddImages(Object) Method

Adds image items to the ImageComboBoxEdit.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void AddImages(
    object imageList
)

#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