- imageUrl
- The URL or virtual directory of the image being loaded.
- pageIndex
- 0-based index of the page to open.
Visual Basic (Declaration) | |
---|---|
Overloads Public Sub OpenImageUrl( _ ByVal imageUrl As String, _ ByVal pageIndex As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
JavaScript | |
---|---|
OpenImageUrl(imageUrl: string, pageIndex: integer); |
Parameters
- imageUrl
- The URL or virtual directory of the image being loaded.
- pageIndex
- 0-based index of the page to open.
This example initializes the WebImageViewer control and load the third page of "multipage.tif", also it initializes the WebImagePanViewer control.
Visual Basic | Copy Code |
---|---|
Public Sub WebImageViewer_OpenImageUrl(ByVal mainWebImageViewer As WebImageViewer, ByVal webImagePanViewer As WebImagePanViewer) |
C# | Copy Code |
---|---|
public void WebImageViewer_OpenImageUrl(WebImageViewer mainWebImageViewer, WebImagePanViewer webImagePanViewer) |
JavaScript | Copy Code |
---|---|
function WebImageViewer_OpenImageUrl(mainWebImageViewer) |
If the imageUrl refers to an URL, the control will download the first page (index 0) to the CacheFolder and display it.
Accessing the ImageInfo property returns the name of the cached image for this URL.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family