←Select platform

LoadItem Method

Summary

Load the image data for an item.

Syntax
C#
VB
C++
protected abstract object LoadItem( 
   ImageViewerItem item 
) 
Protected MustOverride Function LoadItem( 
   ByVal item As ImageViewerItem 
) As Object 
protected:  
   virtual Object^ LoadItem( 
      ImageViewerItem^ item 
   ) abstract 

Parameters

item

Source item

Return Value

The image object for this item.

Remarks

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:

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.

Example

For an example, refer to ImageViewerVirtualizer.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly