Exposed underlying handle of StockIcon via IconHandle

pull/180/head
dahall 2020-11-04 10:03:42 -07:00
parent b71a3723b8
commit ce1b3965af
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ namespace Vanara.Windows.Shell
/// <summary>Gets the icon image in <see cref="System.Drawing.Icon"/> format.</summary>
public Icon Icon { get { Refresh(); return hIcon.IsNull ? null : Icon.FromHandle((IntPtr)hIcon); } }
/// <summary>Gets the icon handle.</summary>
/// <value>The icon handle.</value>
public HICON IconHandle => hIcon;
/// <summary>Gets or sets the Stock Icon identifier associated with this icon.</summary>
public SHSTOCKICONID Identifier { get; set; }