Click or drag to resize

DocumentViewerAdd Method (String, Int32, String, String)

Adds one or more images from a file.

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

Parameters

fileName
Type: SystemString
The full path and filename of the image.
frameIndex
Type: SystemInt32
The frame index to load or -1 to load all pages in a multipage image.
caption
Type: SystemString
The caption of the thumbnail.
toolTip
Type: SystemString
The tooltip for the thumbnail.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the fileName argument is null (Nothing in VB).
FileNotFoundException Thrown if the file cannot be found.
See Also