Click or drag to resize

IconUtilitiesLoadIconForExtension Method

Loads the icon for a given file extension.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static Bitmap LoadIconForExtension(
	string extension,
	string fallbackExtension = null,
	int? preferredSize = null
)

Parameters

extension
Type: SystemString
The file extension.
fallbackExtension (Optional)
Type: SystemString
Another extension to use if the icon was not found.
preferredSize (Optional)
Type: SystemNullableInt32
An optional preferred size argument.

Return Value

Type: Bitmap
An instance of the Bitmap class or null.
See Also