UtilImageExtractIconFromFileExtension Method
Extracts the icon associated for the specified file extension.
Note: the maximum size of the returned icon only can be 32x32.
Namespace: DevCase.Core.Media.GraphicsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Icon ExtractIconFromFileExtension(
string ext
)
Public Shared Function ExtractIconFromFileExtension (
ext As String
) As Icon
Dim ext As String
Dim returnValue As Icon
returnValue = UtilImage.ExtractIconFromFileExtension(ext)
public:
static Icon^ ExtractIconFromFileExtension(
String^ ext
)
static member ExtractIconFromFileExtension :
ext : string -> Icon
No code example is currently available or this language may not be supported.
- ext String
-
The file extension.
Icon
The resulting icon.
This is a code example.
No code example is currently available or this language may not be supported.
Dim ext As String = ".txt"
Dim ico As Icon = ExtractIconFromFileExtension(ext)
Dim bmp As Bitmap = ico.ToBitmap()
PictureBox1.BackgroundImage = bmp
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.