Scroll to the top-left of an item giving its index.
public virtual void GotoItemByIndex(
Public Overridable Sub GotoItemByIndex(
ByVal index As Integer
virtual void GotoItemByIndex(
The 0-based index of the item
The "GoTo" methods scrolls the viewer so the top-left portion of the item is visible in the current control boundary without changing the other transformation properties.
The "Ensure" methods scrolls the viewer the minimum required to ensure the item is fully visible in the current control boundary without changing the other transformation property. If the item is already fully visible, then nothing happens. If the item is larger than the current control boundary, then the viewer will scrolls the minimum amount required where any of the edges (top-left, top-right, bottom-left or bottom-right) is visible.
This example will add a few items to the viewer and then allows the user to go to an item.
Run the demo and click the Example button.
Start with the ImageViewer example, remove all the code inside the example function (search for the "// TODO: add example code here" comment) and insert the following code:
Medical Web Viewer .NET