Class IconReader
- Namespace
- AetherUtils.Core.WinForms
- Assembly
- AetherUtils.Core.dll
Provides static methods to read system icons for both folders and files. i.e.,
IconReader.GetFileIcon("c:\\general.xls");
public static class IconReader
- Inheritance
-
IconReader
- Inherited Members
Methods
GetFileIcon(string, IconSize, bool)
Returns an icon for a given file - indicated by the name parameter.
public static Icon GetFileIcon(string name, IconReader.IconSize size, bool linkOverlay)
Parameters
namestring- Pathname for file.
sizeIconReader.IconSize- Large or small
linkOverlaybool- Whether to include the link icon
Returns
- Icon
- System.Drawing.Icon
GetFolderIcon(IconSize, FolderType)
Used to access system folder icons.
[UsedImplicitly]
public static Icon GetFolderIcon(IconReader.IconSize size, IconReader.FolderType folderType)
Parameters
sizeIconReader.IconSize- Specify large or small icons.
folderTypeIconReader.FolderType- Specify open or closed FolderType.
Returns
- Icon
- System.Drawing.Icon