Syncfusion.Grid.Windows
Example 


ImageList Property (GridListControl)

Gets or sets a list of images that can be referenced with ImageIndex properties.
Syntax
'Declaration
 
<DescriptionAttribute("A list of images that can be referenced with ImageIndex properties.")>
<CategoryAttribute("Grid")>
Public Property ImageList As ImageList
'Usage
 
Dim instance As GridListControl
Dim value As ImageList
 
instance.ImageList = value
 
value = instance.ImageList
[Description("A list of images that can be referenced with ImageIndex properties.")]
[Category("Grid")]
public ImageList ImageList {get; set;}
Example
This example shows how to use the ImageList property.
// Initializes the image list to be displayed in the grid.
ImageList img = new ImageList();
// Adds the image to the list.
img.Images.Add(new Bitmap(FindImageFile(@"\...\...\...\FileName.jpg")));
// Assigns the image-list to the grid.
this.gridListControl1.ImageList = img;
' Initializes the image list to be displayed in the grid.
Dim img As New ImageList()
' Adds the image to the list.
img.Images.Add(New Bitmap(FindImageFile("\...\...\...\FileName.jpg")))
' Assigns the image-list to the grid.
Me.gridListControl1.ImageList = img
AssemblyVersion

Syncfusion.Grid.Windows: 17.1460.0.47

See Also