Tries to get a system stock icon. When there is no icon defined for provided id,
or Windows version is below Vista, this method returns .
In Windows XP use the predefined property members to retrieve system icons.
KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 7.0.0
public static Icon? GetStockIcon(
Public Shared Function GetStockIcon (
id As StockIcon
) As Icon
static Icon^ GetStockIcon(
static member GetStockIcon :
id : StockIcon -> Icon
- id StockIcon
- Id of the icon to retrieve. For future compatibility reasons non-defined StockIcon values are also allowed.
instance containing a small and large icon when an icon belongs to id
when no icon found or Windows version is below Vista, or the method is called in a non-Windows environment.