ThumbnailCollectionAdd Method (String, Int32, String, String) |
Adds a
Thumbnail to the collection by specifying the filename, frame index, caption and
tooltip.
Namespace:
Atalasoft.Imaging.WinControls
Assembly:
Atalasoft.dotImage.WinControls (in Atalasoft.dotImage.WinControls.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public Thumbnail Add(
string fileName,
int frameIndex,
string caption,
string toolTip
)
Public Function Add (
fileName As String,
frameIndex As Integer,
caption As String,
toolTip As String
) As Thumbnail
Parameters
- fileName
- Type: SystemString
The full path and filename of the image used to create the thumbnail. - frameIndex
- Type: SystemInt32
The frame index of the image. - caption
- Type: SystemString
The caption for the thumbnail. - toolTip
- Type: SystemString
The tooltip used for the thumbnail.
Return Value
Type:
ThumbnailExceptions Exception | Condition |
---|
ArgumentNullException | Thrown if the filename is null (Nothing in VB) or an empty string. |
FileNotFoundException | Thrown if the file cannot be found. |
ArgumentOutOfRangeException | Thrown if the frame index is invalid for this image. |
See Also