Click or drag to resize

DocumentViewerAdd Method (Stream, Int32, String, String)

Loads one or more images from a Stream.

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 Add(
	Stream stream,
	int frameIndex,
	string caption,
	string toolTip
)

Parameters

stream
Type: System.IOStream
The stream containing the image data.
frameIndex
Type: SystemInt32
The frame index to load or -1 to load all pages of a multipage image.
caption
Type: SystemString
The thumbnail caption to use.
toolTip
Type: SystemString
The tooltip for the thumbnail.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the stream argument is null (Nothing in VB).
ArgumentException Thrown if the stream is not seekable or does not have read access.
See Also