SystemIconsIHandlerGetFileIcon Method |
Gets a file icon for the specified file
Namespace:
Eto.IO
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax Icon GetFileIcon(
string fileName,
IconSize size
)
Function GetFileIcon (
fileName As String,
size As IconSize
) As Icon
abstract GetFileIcon :
fileName : string *
size : IconSize -> Icon
Parameters
- fileName
- Type: SystemString
Name of the file to get the icon for. - size
- Type: Eto.IOIconSize
Size of the icon.
Return Value
Type:
IconThe 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