Optional user defined data associated with this item.
Object.defineProperty(ImageViewerItem.prototype, 'tag',
get: function(),
set: function(value)
)
tag: any;
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;
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET