Icons Class
From KGy SOFT Drawing Libraries
|
|
| Icons Class | KGy SOFT Drawing Libraries Help |
Provides some icon-related methods as well as properties returning general icons in multi resolution. Unlike SystemIcons, these icons should be disposed when not used any more.
Inheritance Hierarchy
Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.6.1
Syntax
public static class Icons
Public NotInheritable Class Icons
public ref class Icons abstract sealed
[<AbstractClassAttribute>] [<SealedAttribute>] type Icons = class end
The Icons type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Combine(Bitmap) |
Combines the provided images into a multi-resolution Icon instance.
| |
| Combine(Icon) |
Combines the provided icons into a multi-resolution Icon instance.
| |
| Combine(Bitmap, Color) |
Combines the provided images into a multi-resolution Icon instance.
| |
| FromExtension |
Gets the system-associated icon of a file extension.
| |
| FromFile(String) |
Extracts dual-resolution icons from a file and returns them as separated Icon instances.
| |
| FromFile(String, SystemIconSize) |
Extracts icons of the specified size from a file and returns them as separated Icon instances.
| |
| GetStockIcon |
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.
|
Properties
| Name | Description | |
|---|---|---|
| Application | ||
| Error | ||
| Information | ||
| Question | ||
| SecurityError | ||
| SecurityQuestion | ||
| SecurityShield | ||
| SecuritySuccess | ||
| SecurityWarning | ||
| Shield | ||
| SystemApplication | ||
| SystemError | ||
| SystemInformation | ||
| SystemQuestion | ||
| SystemShield | ||
| SystemWarning | ||
| Warning |
See Also