windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemimagecombobox.md
Gets or sets the source of small images.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(null)]
[DXCategory("Appearance")]
public virtual object SmallImages { get; set; }
<DXCategory("Appearance")>
<DefaultValue(Nothing)>
Public Overridable Property SmallImages As Object
| Type | Default | Description |
|---|---|---|
| Object | null |
An object that is an image collection providing small images for the editor’s items.
|
Each item can be associated with a small and/or large image from an image collection(s). Large images are obtained from the RepositoryItemImageComboBox.LargeImages collection, while small images are obtained from the SmallImages.
If both RepositoryItemImageComboBox.LargeImages and SmallImages specify non-null values, items are represented by small images in the edit box and large images in the dropdown. If only one of these properties is assigned, the editor uses images from the corresponding list to display items in both places. If neither property is assigned, items are only represented by their captions.
The SmallImages property accepts the following image collections:
The following code snippets (auto-collected from DevExpress Examples) contain references to the SmallImages property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
RepositoryItemImageComboBox ret = CreateEnumImageComboBox<PersonPrefix>(edit, collection);
ret.SmallImages = CreatePersonPrefixImageCollection();
if(edit == null)
winforms-textedit-advanced-mode/CS/TextEditSample/EmployeeDataHelper.cs#L166
RepositoryItemImageComboBox ret = CreateEnumImageComboBox<PersonPrefix>(edit, collection);
ret.SmallImages = CreatePersonPrefixImageCollection();
if(edit == null)
winforms-imagecomboboxedit-disable-specific-items/CS/WindowsApplication33/Form1.cs#L25
{
imageComboBoxEdit1.Properties.SmallImages = imageList1;
imageComboBoxEdit1.Properties.LargeImages = imageList2;
winforms-grid-display-icons-in-data-cells/VB/Form1.vb#L168
images.AddImage(GetImageFromResource("Image4"))
imageCombo.SmallImages = images
imageCombo.Items.Add(New ImageComboBoxItem("Minor", 1, 0))
winforms-textedit-advanced-mode/VB/TextEditSample/EmployeeDataHelper.vb#L178
Dim ret As RepositoryItemImageComboBox = CreateEnumImageComboBox(Of PersonPrefix)(edit, collection)
ret.SmallImages = CreatePersonPrefixImageCollection()
If edit Is Nothing Then
winforms-imagecomboboxedit-disable-specific-items/VB/WindowsApplication33/Form1.vb#L23
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
imageComboBoxEdit1.Properties.SmallImages = imageList1
imageComboBoxEdit1.Properties.LargeImages = imageList2
See Also
RepositoryItemImageComboBox Class