IToolboxItemInfo.Icon Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.