Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the icon for the toolbox item as a file path, byte array, Bitmap, or IntPtr.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)
Syntax
'Declaration
ReadOnly Property Icon As Object
Object Icon { get; }
property Object^ Icon {
Object^ get ();
}
abstract Icon : Object with get
function get Icon () : Object
Property Value
Type: Object
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.