Click or drag to resize

ThumbnailCollectionInsert Method (Int32, Stream, ThumbnailCaptionRequestEventHandler)

Inserts all pages from a stream into the collection.

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 Thumbnail Insert(
	int index,
	Stream stream,
	ThumbnailCaptionRequestEventHandler captionRequestHandler
)

Parameters

index
Type: SystemInt32
The index in the collection where the Thumbnail will be inserted.
stream
Type: System.IOStream
A stream containing the image to generate the thumbnail from.
captionRequestHandler
Type: Atalasoft.Imaging.WinControlsThumbnailCaptionRequestEventHandler
A ThumbnailCaptionRequestEventHandler to call when a caption and/or tooltip is needed for a thumbnail.

Return Value

Type: Thumbnail

[Missing <returns> documentation for "M:Atalasoft.Imaging.WinControls.ThumbnailCollection.Insert(System.Int32,System.IO.Stream,Atalasoft.Imaging.WinControls.ThumbnailCaptionRequestEventHandler)"]

Exceptions
ExceptionCondition
ArgumentNullException Thrown if the stream is null (Nothing in VB).
ArgumentException Thrown if the stream is not seekable or does not have read access.
ArgumentOutOfRangeException Thrown if the index is invalid for this collection.
See Also