Skip to main content

ImageComboBoxItemCollection.AddImages(Object) Method

Retrieves images from the target image list, assigned to either the RepositoryItemImageComboBox.SmallImages or RepositoryItemImageComboBox.LargeImages property.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public void AddImages(
    object imageList
)

Parameters

Name Type Description
imageList Object

An Object that stores images to be added.

Remarks

The following sample retrieves icons from the SvgImageCollection object.

imageComboBoxEdit1.Properties.SmallImages = svgImageCollection1;
imageComboBoxEdit1.Properties.AddImages(svgImageCollection1);
for (int i = 1; i <= svgImageCollection1.Count; i++)
    imageComboBoxEdit1.Properties.Items[i-1].Description = "Image " + i.ToString();
See Also