Click or drag to resize

DocumentViewerInsert Method (Int32, Stream, ThumbnailCaptionRequestEventHandler)

Inserts all images from a stream into the ThumbnailView 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.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public void Insert(
	int index,
	Stream stream,
	ThumbnailCaptionRequestEventHandler captionRequestHandler
)

Parameters

index
Type: SystemInt32
The index where the thumbnail should be inserted.
stream
Type: System.IOStream
The stream containing the image data.
captionRequestHandler
Type: Atalasoft.Imaging.WinControlsThumbnailCaptionRequestEventHandler
The ThumbnailCaptionRequestEventHandler called to get the thumbnail caption and tooltip.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the stream is null (Nothing in VB).
ArgumentOutOfRangeException Thrown if the index is out of range for this collection.
Remarks
The stream can be closed after calling this method because the image data is saved to a temporary file.
See Also