ThumbnailImageViewerSynchronizer.Insert Method (Int32, RandomAccessImageSource, ThumbnailCaptionRequestEventHandler) |
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)
Syntaxpublic Thumbnail Insert(
int index,
RandomAccessImageSource imageSource,
ThumbnailCaptionRequestEventHandler captionRequestHandler
)
Public Function Insert (
index As Integer,
imageSource As RandomAccessImageSource,
captionRequestHandler As ThumbnailCaptionRequestEventHandler
) As Thumbnail
Parameters
- index
- Type: System.Int32
The index where the thumbnail should be inserted or -1 to add the thumbnail to the end of the
collection. - imageSource
- Type: Atalasoft.Imaging.RandomAccessImageSource
The image source containing images to insert. - captionRequestHandler
- Type: Atalasoft.Imaging.WinControls.ThumbnailCaptionRequestEventHandler
A ThumbnailCaptionRequestEventHandler to call when a caption
and/or tooltip is needed for a thumbnail.
Return Value
Type:
Thumbnail
ExceptionsException | Condition |
---|
ArgumentNullException | Thrown if the imageSource argument is null (Nothing in VB). |
ArgumentException | Thrown if the image source does not know its total image count. |
ArgumentOutOfRangeException | Thrown if the index is out of range for this collection. |
See Also