hasImage Property


Gets a value that indicate if the viewer currently has an image (single item mode).

Object.defineProperty(ImageViewer.prototype, 'hasImage', 
	get: function() 
hasImage: boolean; // read-only 

Property Value

true if the viewer currently has an image; otherwise, false.


The viewer has an image when the value of ImageSize is not empty (0,0). In other words, if any of ImageUrl, Image or Canvas has been set to a valid value or if the user set the value of ImageSize directly.

This is a helper property for applications that use ImageViewer in single item mode. It is a shortcut to ActiveItem. For more information, refer to Image Viewer in Single Item Mode.


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