IconsGetStockIcon Method | KGy SOFT Drawing Libraries Help |
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.
Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.6.0
Syntax
public static Icon GetStockIcon( StockIcon id )
Public Shared Function GetStockIcon ( id As StockIcon ) As Icon
public: static Icon^ GetStockIcon( StockIcon id )
static member GetStockIcon : id : StockIcon -> Icon
Parameters
- id
- Type: KGySoft.DrawingStockIcon
Id of the icon to retrieve. For future compatibility reasons non-defined StockIcon values are also allowed.
Return Value
Type: IconAn Icon instance containing a small and large icon when an icon belongs to id, or , when no icon found or Windows version is below Vista.
See Also