Class IconListManager
- Namespace
- AetherUtils.Core.WinForms
- Assembly
- AetherUtils.Core.dll
Maintains a list of currently added file extensions
[UsedImplicitly]
public sealed class IconListManager
- Inheritance
-
IconListManager
- Inherited Members
- Extension Methods
Constructors
IconListManager(ImageList, IconSize)
Creates an instance of
IconListManager that will add icons to a single ImageList using the
specified IconSize.public IconListManager(ImageList imageList, IconReader.IconSize iconSize)
Parameters
imageListImageListImageListto add icons to.iconSizeIconReader.IconSize- Size to use (either 32 or 16 pixels).
IconListManager(ImageList, ImageList)
Creates an instance of IconListManager that will add icons to two
ImageList types. The two
image lists are intended to be one for large icons, and the other for small icons.public IconListManager(ImageList smallImageList, ImageList largeImageList)
Parameters
smallImageListImageList- The
ImageListthat will hold small icons. largeImageListImageList- The
ImageListthat will hold large icons.
Methods
AddFileIcon(string)
Called publicly to add a file's icon to the ImageList.
[UsedImplicitly]
public int AddFileIcon(string filePath)
Parameters
filePathstring- Full path to the file.
Returns
- int
- Integer of the icon's position in the ImageList
ClearLists()
Clears all ImageLists that IconListManager is managing.
[UsedImplicitly]
public void ClearLists()