windowsforms-devexpress-dot-utils-dot-imagecollection-0b90f421.md
Provides access to the collection of images.
Namespace : DevExpress.Utils
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[DXCategory("Data")]
public Images Images { get; }
<DXCategory("Data")>
Public ReadOnly Property Images As Images
| Type | Description |
|---|---|
| Images |
A Images object that represents the collection of images.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Images 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.
winforms-grid-image-slider-cell-editor/CS/WindowsFormsApplication202/Form1.cs#L25
for (int i = 0; i < rows; i++) {
dt.Rows.Add(i.ToString(), imageCollection1.Images[i]);
}
winforms-grid-add-check-box-to-column-header/CS/GridViewColumnHeaderExtender.cs#L197
CheckGlyphCollection();
e.Cache.DrawImage(checkBoxCollection.Images[index], rect);
if (!skipGlyph)
winforms-grid-display-popup-image-on-mouse-hover/CS/Form1.cs#L18
for (int i = 0; i < 5; i++)
list.Add(new Item() { CategoryID = i, CategoryName = "Test name" + i, Description = "Description" + i, Picture = imageCollection1.Images[i] });
gridControl1.DataSource = list;
winforms-imagecollection-load-images-from-assembly/CS/T183237/Form1.cs#L14
InitializeComponent();
pictureEdit1.Image = imageCollection1.Images[0];
}
ImageCollection imageCollection = editor.Properties.CheckBoxSkinElement.Image.GetImages();
info.Graphics.DrawImage(imageCollection.Images[index], new Rectangle(rect.X + (int)info.Graphics.ClipBounds.X, rect.Y + (int)info.Graphics.ClipBounds.Y, rect.Width, rect.Height));
ObjectPainter.DrawObject(info.Cache, SkinElementPainter.Default, skinElementInfo);
winforms-grid-image-slider-cell-editor/VB/WindowsFormsApplication202/Form1.vb#L27
For i As Integer = 0 To rows - 1
dt.Rows.Add(i.ToString(), imageCollection1.Images(i))
Next i
winforms-grid-add-check-box-to-column-header/VB/GridViewColumnHeaderExtender.vb#L189
CheckGlyphCollection()
e.Cache.DrawImage(checkBoxCollection.Images(index), rect)
If Not skipGlyph Then e.Cache.DrawImage(glyphCollection.Images(index), rect)
winforms-grid-display-popup-image-on-mouse-hover/VB/Form1.vb#L17
For i As Integer = 0 To 5 - 1
list.Add(New Item() With {.CategoryID = i, .CategoryName = "Test name" & i, .Description = "Description" & i, .Picture = imageCollection1.Images(i)})
Next
winforms-imagecollection-load-images-from-assembly/VB/T183237/Form1.vb#L11
InitializeComponent()
pictureEdit1.Image = imageCollection1.Images(0)
End Sub
See Also