IconsFromExtension Method | KGy SOFT Drawing Libraries Help |
Gets the system-associated icon of a file extension.
Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.6.1
Syntax
public static Icon FromExtension( string extension, SystemIconSize size )
Public Shared Function FromExtension ( extension As String, size As SystemIconSize ) As Icon
public: static Icon^ FromExtension( String^ extension, SystemIconSize size )
static member FromExtension : extension : string * size : SystemIconSize -> Icon
Parameters
- extension
- Type: SystemString
A file name (can be a non-existing one) or an extension for which the associated icon is about to be retrieved. - size
- Type: KGySoft.DrawingSystemIconSize
The size of the icon to be retrieved.
Return Value
Type: IconThe icon of the specified extension.
See Also