Leadtools.Controls Namespace > ImageViewerItem Object : Tag Property |
get_tag();
set_tag(value);
Object.defineProperty('tag');
Type | Description |
---|---|
Object | The optional user defined data associated with this item. Default value is null. |
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.
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; }