Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Controls Assembly > Leadtools.Controls Namespace > ImageViewerVirtualizer Class : LoadItem Method |
protected abstract object LoadItem( ImageViewerItem item )
'Declaration
Protected MustOverride Function LoadItem( _ ByVal item As ImageViewerItem _ ) As Object
This method is called when an item comes into view and is not cached in memory.
Implementers must load the image data from the external source and return it here. This can be one of the following:
RasterImage object. Will used as if it was set in ImageViewerItem.Image.
SvgDocument object. Will used as if it was set in ImageViewerItem.SvgDocument.
null, there is no image data for this object.
You should encapsulate the code inside this method with a try/catch and handle the error correctly. This method will not automatically fire the ItemError event.
For an example, refer to ImageViewerVirtualizer.