Beispiel #1
0
 public void SetImageIndex(int index, int imgIndex)
 {
     if (index != -1)
     {
         ImageListBoxItem item = (ImageListBoxItem)Items[index];
         item.ImageIndex = imgIndex;
         Refresh();
     }
 }
Beispiel #2
0
 public void SetTextColor(int index, Color color)
 {
     if (index != -1)
     {
         ImageListBoxItem item = (ImageListBoxItem)Items[index];
         item.TextColor = color;
         Refresh();
     }
 }