ThumbnailEx.FileTypeNotSupportedEventHandler Delegate
In This Topic
Occurs when a file type is not supported by the control. It is possible to provide a specific Bitmap to be used in the item through the CustomBitmap property.
Syntax
'Declaration
<GuidAttribute("D48E3ADF-7C99-325D-A791-1B6C6B7BF59F")>
Public Delegate Sub ThumbnailEx.FileTypeNotSupportedEventHandler( _
ByVal As String, _
ByRef As Integer, _
ByRef As Boolean _
)
[Guid("D48E3ADF-7C99-325D-A791-1B6C6B7BF59F")]
public delegate void ThumbnailEx.FileTypeNotSupportedEventHandler(
string ,
ref int ,
ref bool
)
public delegate ThumbnailEx.FileTypeNotSupportedEventHandler(
: String;
var : Integer;
var : Boolean
);
GuidAttribute("D48E3ADF-7C99-325D-A791-1B6C6B7BF59F")
public delegate ThumbnailEx.FileTypeNotSupportedEventHandler(
: String,
: int,
: boolean
)
[Guid("D48E3ADF-7C99-325D-A791-1B6C6B7BF59F")]
public: __gc __delegate void ThumbnailEx.FileTypeNotSupportedEventHandler(
string* ,
ref int ,
ref bool
)
[Guid("D48E3ADF-7C99-325D-A791-1B6C6B7BF59F")]
public delegate void ThumbnailEx.FileTypeNotSupportedEventHandler(
String^ ,
int% ,
bool%
)
Parameters
- FilePath
- The path of the unsupported file.
- CustomBitmapID
- A GdPicture Image Identifier which can be passed by reference.
- ReleaseBitmap
- A reference to a boolean value. If set to true and if a CustomBitmapID parameter is provided, the control will automatically release the CustomBitmapID from the memory.
Example
Implementing a custom bitmap for unknown file type.
Private Sub ThumbnailEx1_FileTypeNotSupported(ByVal FilePath As String, ByRef CustomBitmapID As Integer, ByRef ReleaseBitmap As Boolean) Handles ThumbnailEx1.FileTypeNotSupported
ReleaseBitmap = True
Using gdPictureImaging As New GdPictureImaging
CustomBitmapID = gdPictureImaging.CreateGdPictureImageFromFile("unsupported.png")
End Using
End Sub
Example
Private Sub ThumbnailEx1_FileTypeNotSupported(ByVal FilePath As String, ByRef CustomBitmapID As Integer, ByRef ReleaseBitmap As Boolean) Handles ThumbnailEx1.FileTypeNotSupported
ReleaseBitmap = True
Using gdPictureImaging As New GdPictureImaging
CustomBitmapID = gdPictureImaging.CreateGdPictureImageFromFile("unsupported.png")
End Using
End Sub
See Also