Click or drag to resize

DocumentViewer.Open Method (String, Int32, String, String)

Opens the specified frame from an image and provides the thumbnail caption and tooltip.

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

Parameters

fileName
Type: System.String
The filename of the image.
frameIndex
Type: System.Int32
The page index to open. A value of -1 will load all pages into the DocumentViewer.
caption
Type: System.String
The caption for the thumbnail.
toolTip
Type: System.String
The tooltip for the thumbnail.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the filename is null (Nothing in VB) or an empty string.
FileNotFoundException Thrown if the file cannot be found.
ArgumentOutOfRangeException Thrown if the frameIndex is out of range for this image.
See Also