Share via


IToolboxItemInfo.Icon Property

Definition

Gets the icon for the toolbox item, as a file path, byte array, Bitmap, or IntPtr.

public:
 property System::Object ^ Icon { System::Object ^ get(); };
public:
 property Platform::Object ^ Icon { Platform::Object ^ get(); };
public object Icon { get; }
member this.Icon : obj
Public ReadOnly Property Icon As Object

Property Value

Remarks

This value can be any of the following, in order of decreasing efficiency (i.e. you should prefer the lower-numbered options): 1. The path to an image file (as a string). 2. A byte array containing the bytes of an image file. 3. A System.Drawing.Bitmap object. 4. 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 may be accessed on a background thread.

Applies to