Back to Devexpress

ImageCollection.Images Property

windowsforms-devexpress-dot-utils-dot-imagecollection-0b90f421.md

latest5.3 KB
Original Source

ImageCollection.Images Property

Provides access to the collection of images.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DXCategory("Data")]
public Images Images { get; }
vb
<DXCategory("Data")>
Public ReadOnly Property Images As Images

Property Value

TypeDescription
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

csharp
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

csharp
CheckGlyphCollection();
e.Cache.DrawImage(checkBoxCollection.Images[index], rect);
if (!skipGlyph)

winforms-grid-display-popup-image-on-mouse-hover/CS/Form1.cs#L18

csharp
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

csharp
InitializeComponent();
    pictureEdit1.Image = imageCollection1.Images[0];
}

winforms-tokenedit-checked-tokens/CS/TokenEdit_Glyph_InEndOfToken/CustomTokenEdit/CustomTokenEditPainter.cs#L44

csharp
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

vb
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

vb
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

vb
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

vb
InitializeComponent()
    pictureEdit1.Image = imageCollection1.Images(0)
End Sub

See Also

ImageCollection Class

ImageCollection Members

DevExpress.Utils Namespace