←Select platform

DeleteItem Method

Summary

Delete the image data for an item.

Syntax
C#
VB
C++
protected abstract void DeleteItem( 
   ImageViewerItem item, 
   object data 
) 
Protected MustOverride Sub DeleteItem( 
   ByVal item As ImageViewerItem, 
   ByVal data As Object 
) 
protected:  
   virtual void DeleteItem( 
      ImageViewerItem^ item, 
      Object^ data 
   ) abstract 

Parameters

item

Source item

data

The image object for this item.

Remarks

This method is called when the item is no longer used. data must be deleted by the derived class here. For example, if

data implements System.IDisposable, then it should be disposed here.

data is the same object returned from LoadItem for this item.

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 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.