Click or drag to resize

SystemIconsGetFileIcon Method

Gets a file icon for the specified file

Namespace:  Eto.IO
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static Icon GetFileIcon(
	string fileName,
	IconSize size
)

Parameters

fileName
Type: SystemString
Name of the file to get the icon for.
size
Type: Eto.IOIconSize
Size of the icon.

Return Value

Type: Icon
The icon for the specified file name.
Remarks
The file does not necessarily have to exist for the icon to be retrieved, though if it is a specific file then the platform may be able to return a file-specific icon if one is available.
See Also