tag Property (ImageViewerItem)

Summary

Optional user defined data associated with this item.

Syntax

JavaScript Syntax
Object.defineProperty(ImageViewerItem.prototype, 'tag', 
	get: function(), 
	set: function(value) 
) 
TypeScript Syntax
tag: any;

Property Value

The optional user defined data associated with this item. Default value is null.

Remarks

This value is not used by LEADTOOLS. You can set any value here for the purpose of your application.

For more information, refer Image Viewer Items.

Example

JavaScript Example
for (var i = 0; i < this._imageViewer.items.count; i++) { 
   var item = this._imageViewer.items.item(i); 
   var pageNumber = item.tag; // we already save the page number in Tag in other example, you can save any data you want in this object 
 
   // for example, update the item text to have page number ... 
   item.text = "Page " + pageNumber; 
} 

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Controls Assembly
Click or drag to resize