Click or drag to resize

DocumentViewerInsert Method (Int32, RandomAccessImageSource, ThumbnailCaptionRequestEventHandler)

Inserts images from a RandomAccessImageSource and gets the thumbnail caption and tooltip from a 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)
Syntax
public void Insert(
	int index,
	RandomAccessImageSource imageSource,
	ThumbnailCaptionRequestEventHandler captionRequestHandler
)

Parameters

index
Type: SystemInt32
The index where the thumbnail should be inserted.
imageSource
Type: Atalasoft.ImagingRandomAccessImageSource
The image source to grab images from.
captionRequestHandler
Type: Atalasoft.Imaging.WinControlsThumbnailCaptionRequestEventHandler
The ThumbnailCaptionRequestEventHandler called to get the thumbnail caption and tooltip.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the imageSource is null (Nothing in VB).
ArgumentException Thorwn if the image source does not know its total image count.
ArgumentOutOfRangeException Thrown if the index is out of range for this collection.
Remarks
The ImageSource provided must remain valid for the lifetime of the control or until the images have been removed.
See Also