DocumentViewerOpen Method (String, Int32) |
Opens the specified frame index 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 Open(
string fileName,
int frameIndex
)
Public Sub Open (
fileName As String,
frameIndex As Integer
)
Parameters
- fileName
- Type: SystemString
The filename of the image. - frameIndex
- Type: SystemInt32
The page index to open. A value of -1 will load all pages into the
DocumentViewer.
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown if the filename argument is null (Nothing in VB) or an empty string. |
FileNotFoundException | Thrown if the filename cannot be found. |
ArgumentOutOfRangeException | Thrown if the frameIndex is out of range for this image. |
See Also