Bonjour,
J'aimerai s'avoir s'il est possible d'ajouter une image à coté d'un label ?
Ceci ne fonctionnant évidemment pas :
<labelControl id="OutlookExplorerCategoryColor" label="Couleur de la catégorie : " getImage="GetColorImage"/>
1 2 3 4 5 6 7 8 9 10 11
| public Bitmap GetColorImage(IRibbonControl control, int index)
{
if (colors == null) GetColors();
Bitmap bmp = new Bitmap(15, 15);
using (Graphics g = Graphics.FromImage(bmp))
{
g.FillRectangle(new SolidBrush(colors[index]), new Rectangle(0, 0, 15, 15));
}
return bmp;
} |
Partager