DocumentViewerOpen Method (RandomAccessImageSource, ThumbnailCaptionRequestEventHandler) |
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 Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown if the imageSource argument is null (Nothing in VB). |
ArgumentException | Thrown if the image source does not know its total image count. |
Examples private void menuOpen_Click(object sender, System.EventArgs e)
{
this._viewer.Open(new FileSystemImageSource(new string[] { @"C:\images\multipage.tif" }, true), new ThumbnailCaptionRequestEventHandler(OnThumbnailCaptionRequest));
}
private void OnThumbnailCaptionRequest(object sender, ThumbnailCaptionRequestEventArgs e)
{
e.Caption = "Image " + e.Index.ToString();
e.ToolTip = "";
}
Private Sub menuOpen_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Me._viewer.Open(New FileSystemImageSource(New String() { "C:\images\multipage.tif" }, True), New ThumbnailCaptionRequestEventHandler(OnThumbnailCaptionRequest))
End Sub
Private Sub OnThumbnailCaptionRequest(ByVal sender As Object, ByVal e As ThumbnailCaptionRequestEventArgs)
e.Caption = "Image " & e.Index.ToString()
e.ToolTip = ""
End Sub
See Also