IToolboxItemInfo::Icon Property
Visual Studio 2015
Gets the icon for the toolbox item as a file path, byte array, Bitmap, or IntPtr.
Assembly: Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)
This value can be any of the following, in order of decreasing efficiency (that is, you should prefer the lower-numbered options):
The path to an image file (as a string).
A byte array containing the bytes of an image file.
A Bitmap object.
A Win32 GDI bitmap handle (as an IntPtr).
For the file path and byte array, all GDI+ file types are supported: BMP, GIF, JPG, PNG and TIFF.
This property can be accessed on a background thread.
Show: